Apply MVP matrix when drawing texture using OpenGLProgram
Change-Id: I1dc34eee645b77537517e147b86599cfe74f09a9
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user