mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7414 from samuele3hu/v3_hot_fix
Fix the tests-lua crash on windows platform
This commit is contained in:
commit
7ed9789b50
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue