Merge pull request #8691 from minggo/fix-runtime

[ci skip]fix runtime error
This commit is contained in:
minggo 2014-10-14 21:38:33 +08:00
commit dc3997d41c
1 changed files with 5 additions and 4 deletions

View File

@ -13,10 +13,6 @@ using namespace std;
AppDelegate::AppDelegate()
{
#if (COCOS2D_DEBUG > 0)
// NOTE:Please don't remove this call if you want to debug with Cocos Code IDE
initRuntime();
#endif
}
AppDelegate::~AppDelegate()
@ -37,6 +33,11 @@ void AppDelegate::initGLContextAttrs()
bool AppDelegate::applicationDidFinishLaunching()
{
#if (COCOS2D_DEBUG > 0)
// NOTE:Please don't remove this call if you want to debug with Cocos Code IDE
initRuntime();
#endif
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();