Chromium Code Reviews| Index: ui/gl/gl_fence.cc |
| diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc |
| index 82cdf30596969a8ddf25c81c96febbab30635971..5e0fbe96acc4775e2b430745cafaeb07257b1407 100644 |
| --- a/ui/gl/gl_fence.cc |
| +++ b/ui/gl/gl_fence.cc |
| @@ -93,15 +93,19 @@ GLFence* GLFence::Create() { |
| // static |
| bool GLFence::IsContextLost() { |
| - if (!gfx::g_GL_ARB_robustness) |
| + if (!gfx::g_GL_ARB_robustness && !gfx::g_GL_EXT_robustness) |
| return false; |
| if (!gfx::GLContext::GetCurrent() || |
| !gfx::GLContext::GetCurrent()-> |
| - WasAllocatedUsingARBRobustness()) |
| + WasAllocatedUsingRobustnessExtension()) |
| return false; |
| - GLenum status = glGetGraphicsResetStatusARB(); |
| + GLenum status; |
| + if (gfx::g_GL_ARB_robustness) |
| + status = glGetGraphicsResetStatusARB(); |
|
apatrick_chromium
2012/07/26 22:12:38
Ditto.
|
| + else |
| + status = glGetGraphicsResetStatusEXT(); |
| return status != GL_NO_ERROR; |
| } |