| Index: ui/gl/gl_context_nsview.mm
|
| diff --git a/ui/gl/gl_context_nsview.mm b/ui/gl/gl_context_nsview.mm
|
| index 8f38d08166d0a1fa8b08b08e9367456362f588cf..10546ad9ee8569052f1c268650eaf8b8f747b6d3 100644
|
| --- a/ui/gl/gl_context_nsview.mm
|
| +++ b/ui/gl/gl_context_nsview.mm
|
| @@ -66,8 +66,9 @@ bool GLContextNSView::MakeCurrent(GLSurface* surface) {
|
|
|
| SetRealGLApi();
|
| SetCurrent(surface);
|
| + ScopedReleaseCurrent release_current(this, surface);
|
| +
|
| if (!InitializeDynamicBindings()) {
|
| - ReleaseCurrent(surface);
|
| return false;
|
| }
|
|
|
| @@ -76,6 +77,7 @@ bool GLContextNSView::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| + release_current.Release();
|
| return true;
|
| }
|
|
|
|
|