| Index: ui/gfx/compositor/compositor_gl.cc
|
| diff --git a/ui/gfx/compositor/compositor_gl.cc b/ui/gfx/compositor/compositor_gl.cc
|
| index 0f0451bb4826464f53d4d4a6bd09ec11ca4001b9..80b23219525a952a820b5e3ba7d01b304c3fefba 100644
|
| --- a/ui/gfx/compositor/compositor_gl.cc
|
| +++ b/ui/gfx/compositor/compositor_gl.cc
|
| @@ -328,7 +328,8 @@ TextureGL::~TextureGL() {
|
| if (texture_id_) {
|
| SharedResourcesGL* instance = SharedResourcesGL::GetInstance();
|
| DCHECK(instance);
|
| - instance->MakeSharedContextCurrent();
|
| + scoped_refptr<gfx::ScopedMakeCurrent> bind =
|
| + instance->ScopedMakeCurrent();
|
| glDeleteTextures(1, &texture_id_);
|
| }
|
| }
|
|
|