Sets default render state when restart director

This commit is contained in:
halx99 2021-11-15 17:49:46 +08:00 committed by GitHub
parent bc4dccff9b
commit 81c063c427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1059,6 +1059,8 @@ void Director::restartDirector()
ScriptEvent scriptEvent(kRestartGame, nullptr);
ScriptEngineManager::sendEventToLua(scriptEvent);
#endif
setGLDefaultValues();
}
void Director::setNextScene()