From d97cc94a02c00b912bbcb430cde55ce0cfb0292c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Mon, 3 Aug 2015 10:13:38 +0900 Subject: [PATCH] Apply MVP matrix when drawing texture using OpenGLProgram Change-Id: I1dc34eee645b77537517e147b86599cfe74f09a9 --- vcl/opengl/program.cxx | 1 + 1 file changed, 1 insertion(+) 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();