Apply MVP matrix when drawing texture using OpenGLProgram

Change-Id: I1dc34eee645b77537517e147b86599cfe74f09a9
This commit is contained in:
Tomaž Vajngerl 2015-08-03 10:13:38 +09:00
parent f73e1f5024
commit d97cc94a02

View File

@ -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();