From 0d222f97e84af6041b50485485cff6e48ae82500 Mon Sep 17 00:00:00 2001 From: slembcke Date: Wed, 22 Oct 2014 16:14:45 -0500 Subject: [PATCH] Fixing transitions for fixed screen mode. --- cocos2d/CCTransition.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos2d/CCTransition.m b/cocos2d/CCTransition.m index cd660b75340..446978ad72d 100644 --- a/cocos2d/CCTransition.m +++ b/cocos2d/CCTransition.m @@ -202,12 +202,14 @@ - (void)startTransition:(CCScene *)scene _outgoingTexture = [CCRenderTexture renderTextureWithWidth:size.width height:size.height pixelFormat:_transitionPixelFormat depthStencilFormat:_transitionDepthStencilFormat]; _outgoingTexture.position = CGPointMake(size.width * 0.5f + rect.origin.x, size.height * 0.5f + rect.origin.y); _outgoingTexture.contentScale /= _outgoingDownScale; + _outgoingTexture.projection = [CCDirector sharedDirector].projectionMatrix; [self addChild:_outgoingTexture z:_outgoingOverIncoming]; // create texture for incoming scene _incomingTexture = [CCRenderTexture renderTextureWithWidth:size.width height:size.height pixelFormat:_transitionPixelFormat depthStencilFormat:_transitionDepthStencilFormat]; _incomingTexture.position = CGPointMake(size.width * 0.5f + rect.origin.x, size.height * 0.5f + rect.origin.y); _incomingTexture.contentScale /= _incomingDownScale; + _incomingTexture.projection = [CCDirector sharedDirector].projectionMatrix; [self addChild:_incomingTexture]; // make sure scene is rendered at least once at progress 0.0