| 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 3af14aebaf4541780881e0fa7210b906664658ad..fc8472585d8750f36098519194698c37b35708a3 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;
|
|
|