summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-18 12:44:34 -0500
committerJan Holesovsky <kendy@collabora.com>2014-12-02 15:47:18 +0100
commite85bee73a53667a08ac1cdd2059b99d3f7bbe5a5 (patch)
tree72b917a994b94cd507ac4c1a1b2b7bebebed4d12
parentcf5fbcf6bc8fe2550d33c424f193567607108862 (diff)
vcl: Make sure the texture unit is the right one before binding
Change-Id: I392190a6927a6eb725c86bcf5278e3cd4491eb5c
-rw-r--r--vcl/opengl/texture.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index 938de5428374..c8f46848e6d6 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -244,6 +244,7 @@ bool OpenGLTexture::Draw()
aTexCoord[3] = aTexCoord[5] = maRect.Bottom() / (double) mpImpl->mnHeight;
}
+ glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, mpImpl->mnTexture );
glEnableVertexAttribArray( 0 );
glVertexAttribPointer( 0, 2, GL_FLOAT, GL_FALSE, 0, aPosition );