Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: ui/gfx/compositor/compositor_gl.cc

Issue 8418035: Fix gl context change on dropping a texture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as recommended as per backer Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_);
}
}

Powered by Google App Engine
This is Rietveld 408576698