Commit 87be33c0 by Jamie Madill

Fix the display not updating after a call to eglSwapInterval.

This could happen because we reset the dirty swap interval flag before we called makeCurrent. BUG=angle:481 Change-Id: I5013265b9669ed5055ba8d777d0fcd5588f30b10 Reviewed-on: https://chromium-review.googlesource.com/178582Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Commit-Queue: Shannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarShannon Woods <shannonwoods@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Commit-Queue: Nicolas Capens <nicolascapens@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org>
parent 95fa672f
...@@ -318,6 +318,8 @@ bool Surface::checkForOutOfDateSwapChain() ...@@ -318,6 +318,8 @@ bool Surface::checkForOutOfDateSwapChain()
sizeDirty = false; sizeDirty = false;
} }
bool wasDirty = (mSwapIntervalDirty || sizeDirty);
if (mSwapIntervalDirty) if (mSwapIntervalDirty)
{ {
resetSwapChain(clientWidth, clientHeight); resetSwapChain(clientWidth, clientHeight);
...@@ -327,7 +329,7 @@ bool Surface::checkForOutOfDateSwapChain() ...@@ -327,7 +329,7 @@ bool Surface::checkForOutOfDateSwapChain()
resizeSwapChain(clientWidth, clientHeight); resizeSwapChain(clientWidth, clientHeight);
} }
if (mSwapIntervalDirty || sizeDirty) if (wasDirty)
{ {
if (static_cast<egl::Surface*>(getCurrentDrawSurface()) == this) if (static_cast<egl::Surface*>(getCurrentDrawSurface()) == this)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment