| Index: ui/gl/gl_context_nsview.mm
|
| diff --git a/ui/gl/gl_context_nsview.mm b/ui/gl/gl_context_nsview.mm
|
| index dd7a5a64851e4dbea0c833f1e10bc8a45a8b445e..8f38d08166d0a1fa8b08b08e9367456362f588cf 100644
|
| --- a/ui/gl/gl_context_nsview.mm
|
| +++ b/ui/gl/gl_context_nsview.mm
|
| @@ -66,6 +66,10 @@ bool GLContextNSView::MakeCurrent(GLSurface* surface) {
|
|
|
| SetRealGLApi();
|
| SetCurrent(surface);
|
| + if (!InitializeDynamicBindings()) {
|
| + ReleaseCurrent(surface);
|
| + return false;
|
| + }
|
|
|
| if (!surface->OnMakeCurrent(this)) {
|
| LOG(ERROR) << "Unable to make gl context current.";
|
|
|