| Index: ui/gl/gl_gl_api_implementation.cc
|
| diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
|
| index 1002dbd278842f0e51a8868f58b1bea16bf5f5fe..a8f671e911f1da1c4ad14223da1840e4286dc948 100644
|
| --- a/ui/gl/gl_gl_api_implementation.cc
|
| +++ b/ui/gl/gl_gl_api_implementation.cc
|
| @@ -285,7 +285,8 @@ bool VirtualGLApi::MakeCurrent(GLContext* virtual_context, GLSurface* surface) {
|
| // needed for individual GL calls.
|
| GLApi* temp = GetCurrentGLApi();
|
| SetGLToRealGLApi();
|
| - virtual_context->GetGLStateRestorer()->RestoreState();
|
| + if (virtual_context->GetGLStateRestorer()->IsInitialized())
|
| + virtual_context->GetGLStateRestorer()->RestoreState();
|
| SetGLApi(temp);
|
| }
|
| SetGLApi(this);
|
|
|