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

Unified Diff: mojo/gpu/gl_texture.cc

Issue 1532923003: Improve GL helpers. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-7
Patch Set: rebase Created 4 years, 11 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 | « mojo/gpu/gl_context_owner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/gl_texture.cc
diff --git a/mojo/gpu/gl_texture.cc b/mojo/gpu/gl_texture.cc
index 3e2b2ced9d822852b586b6622a1c0d3965271149..aa4133616130226a3bb6fdbdf3b442d73ead252e 100644
--- a/mojo/gpu/gl_texture.cc
+++ b/mojo/gpu/gl_texture.cc
@@ -17,6 +17,7 @@ GLTexture::GLTexture(base::WeakPtr<GLContext> context, mojo::Size size)
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, size_.width, size_.height, 0, GL_RGBA,
GL_UNSIGNED_BYTE, 0);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ glBindTexture(GL_TEXTURE_2D, 0);
}
GLTexture::~GLTexture() {
« no previous file with comments | « mojo/gpu/gl_context_owner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698