diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-18 12:44:34 -0500 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-11-22 20:14:17 +0100 |
commit | c0f1b99eafc3c70e6abfb06bb7f4f358770886db (patch) | |
tree | 348031d67d06fb47f58c61ce9707b6bd5bad8ebc /vcl | |
parent | 878aaddebf6018156f5a376b516e935b5069a5c9 (diff) |
vcl: Make sure the texture unit is the right one before binding
Change-Id: I392190a6927a6eb725c86bcf5278e3cd4491eb5c
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/texture.cxx | 1 |
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 ); |