From c0f1b99eafc3c70e6abfb06bb7f4f358770886db Mon Sep 17 00:00:00 2001 From: Louis-Francis Ratté-Boulianne Date: Tue, 18 Nov 2014 12:44:34 -0500 Subject: vcl: Make sure the texture unit is the right one before binding Change-Id: I392190a6927a6eb725c86bcf5278e3cd4491eb5c --- vcl/opengl/texture.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl') 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 ); -- cgit