mirror of https://github.com/axmolengine/axmol.git
Merge pull request #19818 from PatriceJiang/fix_view_pollEvents
[bugfix] glview->pollEvents in main loop
This commit is contained in:
commit
ef442e5cc8
|
@ -83,6 +83,7 @@ int Application::run()
|
|||
lastTime = getCurrentMillSecond();
|
||||
|
||||
director->mainLoop();
|
||||
glview->pollEvents();
|
||||
|
||||
curTime = getCurrentMillSecond();
|
||||
if (curTime - lastTime < _animationInterval)
|
||||
|
|
Loading…
Reference in New Issue