Skip to content

Commit 0d222f9

Browse files
committed
Fixing transitions for fixed screen mode.
1 parent 540e3db commit 0d222f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cocos2d/CCTransition.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,14 @@ - (void)startTransition:(CCScene *)scene
202202
_outgoingTexture = [CCRenderTexture renderTextureWithWidth:size.width height:size.height pixelFormat:_transitionPixelFormat depthStencilFormat:_transitionDepthStencilFormat];
203203
_outgoingTexture.position = CGPointMake(size.width * 0.5f + rect.origin.x, size.height * 0.5f + rect.origin.y);
204204
_outgoingTexture.contentScale /= _outgoingDownScale;
205+
_outgoingTexture.projection = [CCDirector sharedDirector].projectionMatrix;
205206
[self addChild:_outgoingTexture z:_outgoingOverIncoming];
206207

207208
// create texture for incoming scene
208209
_incomingTexture = [CCRenderTexture renderTextureWithWidth:size.width height:size.height pixelFormat:_transitionPixelFormat depthStencilFormat:_transitionDepthStencilFormat];
209210
_incomingTexture.position = CGPointMake(size.width * 0.5f + rect.origin.x, size.height * 0.5f + rect.origin.y);
210211
_incomingTexture.contentScale /= _incomingDownScale;
212+
_incomingTexture.projection = [CCDirector sharedDirector].projectionMatrix;
211213
[self addChild:_incomingTexture];
212214

213215
// make sure scene is rendered at least once at progress 0.0

0 commit comments

Comments
 (0)