Merge pull request #7414 from samuele3hu/v3_hot_fix

Fix the tests-lua crash on windows platform
This commit is contained in:
minggo 2014-07-11 18:48:41 +08:00
commit 7ed9789b50
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ collectgarbage("setstepmul", 5000)
local director = cc.Director:getInstance() local director = cc.Director:getInstance()
local glView = director:getOpenGLView() local glView = director:getOpenGLView()
if nil == glView then if nil == glView then
glView = cc.GLView:createWithRect("Lua Tests", cc.Rect(0,0,900,640)) glView = cc.GLView:createWithRect("Lua Tests", cc.rect(0,0,900,640))
director:setOpenGLView(glView)
end end
--turn on display FPS --turn on display FPS