fix rendertexture bug

This commit is contained in:
Huabing.Xu 2013-12-31 11:48:51 +08:00
parent a14006bb8f
commit bf1f5dd0e0
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ void RenderTexture::onBegin()
float heightRatio = size.height / texSize.height;
// Adjust the orthographic projection and viewport
glViewport(0, 0, (GLsizei)texSize.width, (GLsizei)texSize.height);
glViewport(0, 0, (GLsizei)size.width, (GLsizei)size.height);
kmMat4 orthoMatrix;