Skip to content

Commit a71a439

Browse files
committed
Merge pull request #972 from ksjogo/969
fixing CCRenderTexture -clearStencil
2 parents 1fbebec + 2b777fd commit a71a439

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
@@ -392,7 +392,7 @@ - (void)clearDepth:(float)depthValue
392392
- (void)clearStencil:(int)stencilValue
393393
{
394394
[self begin];
395-
[_renderer enqueueClear:GL_DEPTH_BUFFER_BIT color:GLKVector4Make(0, 0, 0, 0) depth:0.0 stencil:stencilValue globalSortOrder:NSIntegerMin];
395+
[_renderer enqueueClear:GL_STENCIL_BUFFER_BIT color:GLKVector4Make(0, 0, 0, 0) depth:0.0 stencil:stencilValue globalSortOrder:NSIntegerMin];
396396
[self end];
397397
}
398398

0 commit comments

Comments
 (0)