Commit 0ac0544f by Geoff Lang Committed by Nicolas Capens

Handle an unknown error when exiting fullscreen on Windows 8.

BUG=361553 Change-Id: I6d3e843a8ae06f1bbd5313ed95e338cb0b74fef3 Reviewed-on: https://chromium-review.googlesource.com/194128Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Reviewed-by: 's avatarJohn Bauman <jbauman@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org> (cherry picked from commit 74697cf2) Reviewed-on: https://chromium-review.googlesource.com/195160Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org>
parent 2a49927d
...@@ -356,6 +356,14 @@ EGLint SwapChain9::swapRect(EGLint x, EGLint y, EGLint width, EGLint height) ...@@ -356,6 +356,14 @@ EGLint SwapChain9::swapRect(EGLint x, EGLint y, EGLint width, EGLint height)
return EGL_BAD_ALLOC; return EGL_BAD_ALLOC;
} }
// On Windows 8 systems, IDirect3DSwapChain9::Present sometimes returns 0x88760873 when the windows is
// in the process of entering/exiting fullscreen. This code doesn't seem to have any documentation. The
// device appears to be ok after emitting this error so simply return a failure to swap.
if (result == 0x88760873)
{
return EGL_BAD_NATIVE_WINDOW;
}
// http://crbug.com/313210 // http://crbug.com/313210
// If our swap failed, trigger a device lost event. Resetting will work around an AMD-specific // If our swap failed, trigger a device lost event. Resetting will work around an AMD-specific
// device removed bug with lost contexts when reinstalling drivers. // device removed bug with lost contexts when reinstalling drivers.
......
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