Kaydet (Commit) c948d398 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Andras Timar

Apply MVP matrix when drawing texture using OpenGLProgram

Change-Id: I1dc34eee645b77537517e147b86599cfe74f09a9
(cherry picked from commit d97cc94a)
Reviewed-on: https://gerrit.libreoffice.org/17560Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 6ca26b5b
...@@ -278,6 +278,7 @@ bool OpenGLProgram::DrawTexture( OpenGLTexture& rTexture ) ...@@ -278,6 +278,7 @@ bool OpenGLProgram::DrawTexture( OpenGLTexture& rTexture )
rTexture.GetWholeCoord( aTexCoord ); rTexture.GetWholeCoord( aTexCoord );
SetVertices( aPosition ); SetVertices( aPosition );
SetTextureCoord( aTexCoord ); SetTextureCoord( aTexCoord );
ApplyMatrix(fWidth, fHeight);
glDrawArrays( GL_TRIANGLE_FAN, 0, 4 ); glDrawArrays( GL_TRIANGLE_FAN, 0, 4 );
CHECK_GL_ERROR(); CHECK_GL_ERROR();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment