Skip to content

Commit 4a65b4d

Browse files
committed
Merge branch 'develop' of github.com:cocos2d/cocos2d-iphone into develop
2 parents 18132f7 + 53d5178 commit 4a65b4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cocos2d-ui-tests/tests/CCRendererTest.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ -(void)setupInfiniteWindowTest
175175
CCNode *contentNode = self.contentNode;
176176
CGSize size = [CCDirector sharedDirector].designSize;
177177

178-
[self scheduleBlock:^(CCTimer *timer) {
178+
CCNode *node = [CCNode node];
179+
[self.contentNode addChild:node];
180+
181+
[node scheduleBlock:^(CCTimer *timer) {
179182
CCRenderTexture *rt = [CCRenderTexture renderTextureWithWidth:size.width height:size.height];
180183

181184
[rt begin];

0 commit comments

Comments
 (0)