diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index 7d0a2d80aa..d078800df8 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -1059,6 +1059,8 @@ void Director::restartDirector() ScriptEvent scriptEvent(kRestartGame, nullptr); ScriptEngineManager::sendEventToLua(scriptEvent); #endif + + setGLDefaultValues(); } void Director::setNextScene()