fix redmine issue #20277 RestartGameTest only used in native will crash

This commit is contained in:
jianglong0156 2015-06-23 14:41:41 +08:00
parent 4823cc3bc2
commit 90f9bf37cd
1 changed files with 3 additions and 0 deletions

View File

@ -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();