Avoid a flash of last scene after loading a new scene

This commit is contained in:
pandamicro
2016-03-10 16:15:53 +08:00
parent 0c92f2182d
commit d558cf7bc7
+1
View File
@@ -540,6 +540,7 @@ cc.Director = Class.extend(/** @lends cc.Director# */{
if (onLaunched) {
onLaunched(null, scene);
}
cc.renderer.clear();
this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);
},