From c948d39830555b41bb21a647147e95b11f9a946e Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 3 Aug 2015 10:13:38 +0900 Subject: 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 Reviewed-by: Miklos Vajna --- vcl/opengl/program.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/opengl') 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(); -- cgit v1.2.3