diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-08-03 10:13:38 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-08-03 10:13:38 +0900 |
commit | d97cc94a02c00b912bbcb430cde55ce0cfb0292c (patch) | |
tree | a17306cee89d682d71facb2f2b4203132fcfa71c /vcl | |
parent | f73e1f50240208257964e28e0e65a56e323d86da (diff) |
Apply MVP matrix when drawing texture using OpenGLProgram
Change-Id: I1dc34eee645b77537517e147b86599cfe74f09a9
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/program.cxx | 1 |
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(); |