summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-08-03 10:13:38 +0900
committerAndras Timar <andras.timar@collabora.com>2015-08-20 14:13:25 +0200
commitc948d39830555b41bb21a647147e95b11f9a946e (patch)
tree545ebc4d7031eb38f4beecf118be2518b7d1f900 /vcl/opengl
parent6ca26b5b16c4906a3627cc2b38fca76b0d014c9f (diff)
Apply MVP matrix when drawing texture using OpenGLProgram
Change-Id: I1dc34eee645b77537517e147b86599cfe74f09a9 (cherry picked from commit d97cc94a02c00b912bbcb430cde55ce0cfb0292c) Reviewed-on: https://gerrit.libreoffice.org/17560 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/program.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx
index 157243b746bc..3bfa6c2a453c 100644
--- a/vcl/opengl/program.cxx
+++ b/vcl/opengl/program.cxx
@@ -278,6 +278,7 @@ bool OpenGLProgram::DrawTexture( OpenGLTexture& rTexture )
rTexture.GetWholeCoord( aTexCoord );
SetVertices( aPosition );
SetTextureCoord( aTexCoord );
+ ApplyMatrix(fWidth, fHeight);
glDrawArrays( GL_TRIANGLE_FAN, 0, 4 );
CHECK_GL_ERROR();