| Index: ui/gl/gl_fence_arb.cc
|
| diff --git a/ui/gl/gl_fence_arb.cc b/ui/gl/gl_fence_arb.cc
|
| index 8f1711f00ecf321dfdedda66ef4838c532323494..7bc089d8bfc9c8d9d869730dbd50326731b34b17 100644
|
| --- a/ui/gl/gl_fence_arb.cc
|
| +++ b/ui/gl/gl_fence_arb.cc
|
| @@ -78,8 +78,10 @@ void GLFenceARB::HandleClientWaitFailure() {
|
| if (GLContext::GetCurrent()->WasAllocatedUsingRobustnessExtension()) {
|
| // This function pointer is only set if one of the robustness
|
| // extensions was available.
|
| - DCHECK(g_driver_gl.fn.glGetGraphicsResetStatusARBFn);
|
| - DCHECK(g_driver_gl.fn.glGetGraphicsResetStatusARBFn() != GL_NO_ERROR);
|
| + DCHECK(g_current_gl_driver &&
|
| + g_current_gl_driver->fn.glGetGraphicsResetStatusARBFn);
|
| + DCHECK(g_current_gl_driver->fn.glGetGraphicsResetStatusARBFn() !=
|
| + GL_NO_ERROR);
|
| LOG(ERROR) << "Failed to wait for GLFence; context was lost. Error code: "
|
| << GetGLErrors();
|
| } else {
|
|
|