Index: ui/gfx/gl/gl_context_wgl.cc |
diff --git a/ui/gfx/gl/gl_context_wgl.cc b/ui/gfx/gl/gl_context_wgl.cc |
index 01506c0aad39896a5753250a74f216ea0f5c400e..87e50a30923d77ea86575e32705350c71507becc 100644 |
--- a/ui/gfx/gl/gl_context_wgl.cc |
+++ b/ui/gfx/gl/gl_context_wgl.cc |
@@ -83,6 +83,11 @@ bool GLContextWGL::MakeCurrent(GLSurface* surface) { |
} |
SetCurrent(this, surface); |
+ if (!InitializeExtensionBindings()) { |
+ ReleaseCurrent(surface); |
+ return false; |
+ } |
+ |
if (!surface->OnMakeCurrent(this)) { |
LOG(ERROR) << "Could not make current."; |
return false; |