summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToma┼ż Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-08-03 10:13:38 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-08-07 09:35:12 +0000
commitb55e95ab39c684e226c667af456dea4f3d53b791 (patch)
treefdfc68c25011e7d2719f6583e3869b692100342f
parent127768880d44881defa937a98d222df321a47262 (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>
-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();