Index: content/common/gpu/gpu_command_buffer_stub.cc |
=================================================================== |
--- content/common/gpu/gpu_command_buffer_stub.cc (revision 86168) |
+++ content/common/gpu/gpu_command_buffer_stub.cc (working copy) |
@@ -414,8 +414,8 @@ |
// Recreate the view surface to match the window size. TODO(apatrick): this is |
// likely not necessary on all platforms. |
gfx::GLContext* context = scheduler_->decoder()->GetGLContext(); |
- context->ReleaseCurrent(); |
- gfx::GLSurface* surface = context->GetSurface(); |
+ gfx::GLSurface* surface = scheduler_->decoder()->GetGLSurface(); |
+ context->ReleaseCurrent(surface); |
if (surface) { |
surface->Destroy(); |
surface->Initialize(); |