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