| Index: ui/gfx/compositor/compositor_cc.cc
|
| diff --git a/ui/gfx/compositor/compositor_cc.cc b/ui/gfx/compositor/compositor_cc.cc
|
| index 3e789c572d3464108d6c1c2a5739fc03be9fcbe7..490cf391252f7feecaf9efd8065865cb694bee79 100644
|
| --- a/ui/gfx/compositor/compositor_cc.cc
|
| +++ b/ui/gfx/compositor/compositor_cc.cc
|
| @@ -239,7 +239,9 @@ WebKit::WebGraphicsContext3D* CompositorCC::createContext3D() {
|
| CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| if (!command_line->HasSwitch(switches::kDisableUIVsync)) {
|
| context->makeContextCurrent();
|
| - gfx::GLContext::GetCurrent()->SetSwapInterval(1);
|
| + gfx::GLContext* gl_context = gfx::GLContext::GetCurrent();
|
| + gl_context->SetSwapInterval(1);
|
| + gl_context->ReleaseCurrent(NULL);
|
| }
|
|
|
| return context;
|
|
|