Skip to content

Commit

Permalink
Merge pull request #621 from DigitalRuby/develop-v3
Browse files Browse the repository at this point in the history
Fix for swapBuffers crash and animations issue


Former-commit-id: 72be240
  • Loading branch information
slembcke committed Mar 6, 2014
2 parents d159e9e + 7827437 commit af62bbb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cocos2d/Platforms/iOS/CCDirectorIOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,12 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
-(void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self startAnimation];

UIApplicationState state = UIApplication.sharedApplication.applicationState;
if (state != UIApplicationStateBackground)
{
[self startAnimation];
}
}

-(void) viewDidAppear:(BOOL)animated
Expand Down

0 comments on commit af62bbb

Please sign in to comment.