mirror of https://github.com/axmolengine/axmol.git
fix rendertexture bug
This commit is contained in:
parent
a14006bb8f
commit
bf1f5dd0e0
|
@ -506,7 +506,7 @@ void RenderTexture::onBegin()
|
||||||
float heightRatio = size.height / texSize.height;
|
float heightRatio = size.height / texSize.height;
|
||||||
|
|
||||||
// Adjust the orthographic projection and viewport
|
// 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;
|
kmMat4 orthoMatrix;
|
||||||
|
|
Loading…
Reference in New Issue