diff options
Diffstat (limited to 'ui/gfx/gl/gl_context_osmesa.cc')
-rw-r--r-- | ui/gfx/gl/gl_context_osmesa.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_context_osmesa.cc b/ui/gfx/gl/gl_context_osmesa.cc index df7766d..efa6d16 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; |