mirror of https://github.com/axmolengine/axmol.git
fix redmine issue #20277 RestartGameTest only used in native will crash
This commit is contained in:
parent
4823cc3bc2
commit
90f9bf37cd
|
@ -1007,6 +1007,9 @@ void Director::restartDirector()
|
||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
|
|
||||||
|
// RenderState need to be reinitialized
|
||||||
|
RenderState::initialize();
|
||||||
|
|
||||||
// Texture cache need to be reinitialized
|
// Texture cache need to be reinitialized
|
||||||
initTextureCache();
|
initTextureCache();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue