cocos2d/cocos2d-iphone — pull request #224 by cjhanson (2012-07-27 00:00:13+00:00)
Title: CCDirector startup flicker

CCDirector.m

runWithScene:
- Added assert to prevent calling this with a scene already on the scene stack
- Removed call to startAnimation
- Added forced draw after pushing the scene

replaceScene:
- Added assert to prevent calling this with the first scene and a note to use runWithScene: instead

pushScene:
- No changes, but I could not add an assert to prevent calling this for the first scene since it is internally called by runWithScene: Maybe it should output a log warning?

CCGLView.m

layoutSubviews
- Added a conditional check to make sure there is actually a runningScene before drawing to prevent drawing the clear color as the first draw