mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7458 from MSOpenTech/wp8-v3-fix
updated cpp template to support EVENT_RENDERER_RECREATED
This commit is contained in:
commit
e431d4f824
|
@ -67,8 +67,8 @@ void Cocos2dRenderer::CreateGLResources()
|
|||
cocos2d::ShaderCache::getInstance()->reloadDefaultGLPrograms();
|
||||
cocos2d::DrawPrimitives::init();
|
||||
cocos2d::VolatileTextureMgr::reloadAllTextures();
|
||||
cocos2d::EventCustom foregroundEvent(EVENT_COME_TO_FOREGROUND);
|
||||
director->getEventDispatcher()->dispatchEvent(&foregroundEvent);
|
||||
cocos2d::EventCustom recreatedEvent(EVENT_RENDERER_RECREATED);
|
||||
director->getEventDispatcher()->dispatchEvent(&recreatedEvent);
|
||||
cocos2d::Application::getInstance()->applicationWillEnterForeground();
|
||||
director->setGLDefaultValues();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue