Skip to content

Commit 01ad4cb

Browse files
committed
Mac Fix for stenciled transitions.
1 parent ab03552 commit 01ad4cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cocos2d-ui-tests/tests/CCRendererTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ -(void)setupClippingNodeTest
2626
CCNode *stencil = [CCSprite spriteWithImageNamed:@"Sprites/grossini.png"];
2727
// [parent addChild:stencil];
2828
stencil.position = ccp(size.width/2, size.height/2);
29-
stencil.scale = 3.0;
29+
stencil.scale = 5.0;
3030
[stencil runAction:[CCActionRepeatForever actionWithAction:[CCActionRotateBy actionWithDuration:1.0 angle:90.0]]];
3131

3232
CCClippingNode *clip = [CCClippingNode clippingNodeWithStencil:stencil];

cocos2d/CCTransition.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ - (id)initWithDuration:(NSTimeInterval)duration
165165
_progress = 0.0f;
166166

167167
_transitionPixelFormat = CCTexturePixelFormat_RGBA8888;
168-
_transitionDepthStencilFormat = GL_DEPTH24_STENCIL8_OES;
168+
_transitionDepthStencilFormat = GL_DEPTH24_STENCIL8;
169169

170170
// disable touch during transition
171171
self.userInteractionEnabled = NO;

0 commit comments

Comments
 (0)