| Index: ui/gl/gl_context_egl.cc
|
| diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
|
| index 7354c7d82ec63a29fbda735ccca4430c0d68ff37..d8fc4c7f30aebfbfced727481c5f2d122bb725ba 100644
|
| --- a/ui/gl/gl_context_egl.cc
|
| +++ b/ui/gl/gl_context_egl.cc
|
| @@ -112,6 +112,9 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| + // Set this as soon as the context is current, since we might call into GL.
|
| + SetRealGLApi();
|
| +
|
| SetCurrent(surface);
|
| if (!InitializeExtensionBindings()) {
|
| ReleaseCurrent(surface);
|
| @@ -123,7 +126,6 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| - SetRealGLApi();
|
| return true;
|
| }
|
|
|
|
|