Index: ui/gfx/gl/gl_context_osmesa.cc |
diff --git a/ui/gfx/gl/gl_context_osmesa.cc b/ui/gfx/gl/gl_context_osmesa.cc |
index df7766d22c42f61346f44dd644931134766dc82e..efa6d1695275dd3cc5140f7068a31646f3c28236 100644 |
--- a/ui/gfx/gl/gl_context_osmesa.cc |
+++ b/ui/gfx/gl/gl_context_osmesa.cc |
@@ -70,6 +70,11 @@ bool GLContextOSMesa::MakeCurrent(GLSurface* surface) { |
OSMesaPixelStore(OSMESA_Y_UP, 0); |
SetCurrent(this, surface); |
+ if (!InitializeExtensionBindings()) { |
+ ReleaseCurrent(surface); |
+ return false; |
+ } |
+ |
if (!surface->OnMakeCurrent(this)) { |
LOG(ERROR) << "Could not make current."; |
return false; |