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

Unified Diff: ui/gl/scoped_binders.cc

Issue 205843002: GPU: Only restore one texture unit in ScopedTextureBinder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mock. Created 6 years, 9 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
« no previous file with comments | « ui/gl/gl_state_restorer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/scoped_binders.cc
diff --git a/ui/gl/scoped_binders.cc b/ui/gl/scoped_binders.cc
index eef92c1073333aed7ba0ed9ec4c2333bc066bfcc..bb2b290105622a9823b49b284d6bbd72aa6f36bc 100644
--- a/ui/gl/scoped_binders.cc
+++ b/ui/gl/scoped_binders.cc
@@ -59,7 +59,7 @@ ScopedTextureBinder::~ScopedTextureBinder() {
if (state_restorer_) {
DCHECK(!!GLContext::GetCurrent());
DCHECK_EQ(state_restorer_, GLContext::GetCurrent()->GetGLStateRestorer());
- state_restorer_->RestoreAllTextureUnitBindings();
+ state_restorer_->RestoreActiveTextureUnitBinding(target_);
} else {
glBindTexture(target_, old_id_);
}
« no previous file with comments | « ui/gl/gl_state_restorer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698