Commit 6a17b14e by Nicolas Capens

Report unknown swap error as EGL_BAD_MATCH.

EGL_BAD_NATIVE_WINDOW is exclusively for indicating that the native window handle is invalid. Since we're seeing this error on switches between full-screen and windowed, EGL_BAD_MATCH seems like a better fit. BUG=361553 Change-Id: If0e2c4e5efd90838629b2769f20fcffdad4c30a9 Reviewed-on: https://chromium-review.googlesource.com/195344Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@chromium.org>
parent d70707b4
...@@ -361,7 +361,7 @@ EGLint SwapChain9::swapRect(EGLint x, EGLint y, EGLint width, EGLint height) ...@@ -361,7 +361,7 @@ EGLint SwapChain9::swapRect(EGLint x, EGLint y, EGLint width, EGLint height)
// device appears to be ok after emitting this error so simply return a failure to swap. // device appears to be ok after emitting this error so simply return a failure to swap.
if (result == 0x88760873) if (result == 0x88760873)
{ {
return EGL_BAD_NATIVE_WINDOW; return EGL_BAD_MATCH;
} }
// http://crbug.com/313210 // http://crbug.com/313210
......
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