mirror of https://github.com/axmolengine/axmol.git
Improve restart game
This commit is contained in:
parent
5755cc69e9
commit
677f7ca1d3
|
@ -1041,6 +1041,9 @@ void Director::restartDirector()
|
|||
// Texture cache need to be reinitialized
|
||||
initTextureCache();
|
||||
|
||||
// Reschedule for action manager
|
||||
getScheduler()->scheduleUpdate(getActionManager(), Scheduler::PRIORITY_SYSTEM, false);
|
||||
|
||||
// release the objects
|
||||
PoolManager::getInstance()->getCurrentPool()->clear();
|
||||
|
||||
|
|
Loading…
Reference in New Issue