Chromium Code Reviews| Index: ui/gl/gl_context_egl.cc |
| diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc |
| index d8fc4c7f30aebfbfced727481c5f2d122bb725ba..f3f8c21b09b652faa04bf3e6a2f6362d7b4c29ca 100644 |
| --- a/ui/gl/gl_context_egl.cc |
| +++ b/ui/gl/gl_context_egl.cc |
| @@ -123,6 +123,7 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) { |
| if (!surface->OnMakeCurrent(this)) { |
| LOG(ERROR) << "Could not make current."; |
| + ReleaseCurrent(surface); |
| return false; |
| } |