Index: ui/gfx/gl/gl_context_cgl.cc |
diff --git a/ui/gfx/gl/gl_context_cgl.cc b/ui/gfx/gl/gl_context_cgl.cc |
index 0e96bd4837904a9d98370a8bdc339f98e74dc2a6..879060221beaf4b55509757467c8a3b678e251bc 100644 |
--- a/ui/gfx/gl/gl_context_cgl.cc |
+++ b/ui/gfx/gl/gl_context_cgl.cc |
@@ -103,6 +103,11 @@ bool GLContextCGL::MakeCurrent(GLSurface* surface) { |
} |
SetCurrent(this, surface); |
+ if (!InitializeExtensionBindings()) { |
+ ReleaseCurrent(surface); |
+ return false; |
+ } |
+ |
if (!surface->OnMakeCurrent(this)) { |
LOG(ERROR) << "Unable to make gl context current."; |
return false; |