Commit 1633663b by Geoff Lang Committed by Commit Bot

Don't test for device loss in SwapBuffers and MakeCurrent.

Simply check if the device has already been lost. Chrome already checks glGetGraphicsResetStatus after SwapBuffers and MakeCurrent. BUG=angleproject:1472 BUG=621240 Change-Id: I95fe6306fa0c09191a4b1b93840c2143e069ef53 Reviewed-on: https://chromium-review.googlesource.com/1026527 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent e5db628b
...@@ -1321,7 +1321,7 @@ Error ValidateMakeCurrent(Display *display, EGLSurface draw, EGLSurface read, gl ...@@ -1321,7 +1321,7 @@ Error ValidateMakeCurrent(Display *display, EGLSurface draw, EGLSurface read, gl
ANGLE_TRY(ValidateContext(display, context)); ANGLE_TRY(ValidateContext(display, context));
} }
if (display->isInitialized() && display->testDeviceLost()) if (display->isInitialized() && display->isDeviceLost())
{ {
return EglContextLost(); return EglContextLost();
} }
......
...@@ -658,7 +658,7 @@ EGLBoolean EGLAPIENTRY SwapBuffers(EGLDisplay dpy, EGLSurface surface) ...@@ -658,7 +658,7 @@ EGLBoolean EGLAPIENTRY SwapBuffers(EGLDisplay dpy, EGLSurface surface)
return EGL_FALSE; return EGL_FALSE;
} }
if (display->testDeviceLost()) if (display->isDeviceLost())
{ {
thread->setError(EglContextLost()); thread->setError(EglContextLost());
return EGL_FALSE; return EGL_FALSE;
......
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