Skip to content

Commit 82bd80d

Browse files
committed
Merge pull request #724 from hakonber/rendertexture_fix_matrix
Fix for inverted near / far planes in CCRenderTexture projection matrix.
2 parents 114e4c9 + 0f265cc commit 82bd80d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCRenderTexture.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ -(void)begin
197197

198198
kmMat4 orthoMatrix;
199199
kmMat4OrthographicProjection(&orthoMatrix, (float)-1.0 / widthRatio, (float)1.0 / widthRatio,
200-
(float)-1.0 / heightRatio, (float)1.0 / heightRatio, -1,1 );
200+
(float)-1.0 / heightRatio, (float)1.0 / heightRatio, 1,-1 );
201201
kmGLMultMatrix(&orthoMatrix);
202202

203203

0 commit comments

Comments
 (0)