| Index: ui/gl/gl_context_wgl.cc
|
| diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc
|
| index dba107bedc58439d4bfd622a548bf79e45e613a1..8ee90dd8ff3b0e72e04a4ab52e67156a021dd724 100644
|
| --- a/ui/gl/gl_context_wgl.cc
|
| +++ b/ui/gl/gl_context_wgl.cc
|
| @@ -81,6 +81,9 @@ bool GLContextWGL::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);
|
| @@ -92,7 +95,6 @@ bool GLContextWGL::MakeCurrent(GLSurface* surface) {
|
| return false;
|
| }
|
|
|
| - SetRealGLApi();
|
| return true;
|
| }
|
|
|
|
|