Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: ui/gl/gl_fence_arb.cc

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698