Merge pull request #19818 from PatriceJiang/fix_view_pollEvents

[bugfix] glview->pollEvents in main loop
This commit is contained in:
minggo 2019-06-10 23:13:58 -07:00 committed by GitHub
commit ef442e5cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ int Application::run()
lastTime = getCurrentMillSecond();
director->mainLoop();
glview->pollEvents();
curTime = getCurrentMillSecond();
if (curTime - lastTime < _animationInterval)