| Index: ui/gl/gl_context_glx.cc
|
| diff --git a/ui/gl/gl_context_glx.cc b/ui/gl/gl_context_glx.cc
|
| index 662538beb589e070bc8eab9b9d95e037bda43deb..eb4e366ab4fae59749f656113b7be6b587c6c785 100644
|
| --- a/ui/gl/gl_context_glx.cc
|
| +++ b/ui/gl/gl_context_glx.cc
|
| @@ -123,6 +123,9 @@ bool GLContextGLX::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);
|
| @@ -137,7 +140,6 @@ bool GLContextGLX::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| - SetRealGLApi();
|
| return true;
|
| }
|
|
|
|
|