Skip to content

Commit 6054984

Browse files
committed
revert RenderTexture.
1 parent b651340 commit 6054984

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cocos2d/CCRenderTexture.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -618,16 +618,11 @@ -(void) setContentSize:(CGSize)size
618618
// TODO: Fix CCRenderTexture so that it correctly handles this
619619
// NSAssert(NO, @"You cannot change the content size of an already created CCRenderTexture. Recreate it");
620620
[super setContentSize:size];
621+
_projection = GLKMatrix4MakeOrtho(0.0f, size.width, 0.0f, size.height, -1024.0f, 1024.0f);
621622
_contentSizeChanged = YES;
622623

623624
}
624625

625-
-(void)setContentSizeType:(CCSizeType)contentSizeType
626-
{
627-
[super setContentSizeType:contentSizeType];
628-
_contentSizeChanged = YES;
629-
}
630-
631626

632627

633628
@end

0 commit comments

Comments
 (0)