Skip to content

Commit 2b777fd

Browse files
committed
fixing CCRenderTexture -clearStencil
1 parent c6e4f0a commit 2b777fd

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
@@ -386,7 +386,7 @@ - (void)clearDepth:(float)depthValue
386386
- (void)clearStencil:(int)stencilValue
387387
{
388388
[self begin];
389-
[_renderer enqueueClear:GL_DEPTH_BUFFER_BIT color:GLKVector4Make(0, 0, 0, 0) depth:0.0 stencil:stencilValue globalSortOrder:NSIntegerMin];
389+
[_renderer enqueueClear:GL_STENCIL_BUFFER_BIT color:GLKVector4Make(0, 0, 0, 0) depth:0.0 stencil:stencilValue globalSortOrder:NSIntegerMin];
390390
[self end];
391391
}
392392

0 commit comments

Comments
 (0)