| Index: ui/gl/gl_context_egl.cc
|
| diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
|
| index 856d84c89cb572265ed711cde20c8c69bdeba04c..16905d68187e4730a2ba30a51725948a7c857e10 100644
|
| --- a/ui/gl/gl_context_egl.cc
|
| +++ b/ui/gl/gl_context_egl.cc
|
| @@ -115,8 +115,9 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
|
| SetRealGLApi();
|
|
|
| SetCurrent(surface);
|
| + ScopedReleaseCurrent release_current(this, surface);
|
| +
|
| if (!InitializeDynamicBindings()) {
|
| - ReleaseCurrent(surface);
|
| return false;
|
| }
|
|
|
| @@ -125,6 +126,7 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| + release_current.Release();
|
| return true;
|
| }
|
|
|
|
|