mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 16:14:01 +02:00
Merge pull request #15467 from samcake/sol
case 22353: Mac Game loop performances was borked
This commit is contained in:
commit
5ffce7f1a1
1 changed files with 7 additions and 0 deletions
|
@ -182,6 +182,9 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
_context->makeCurrent();
|
||||
#endif
|
||||
// Execute the frame and present it to the display device.
|
||||
{
|
||||
PROFILE_RANGE(render, "PluginPresent")
|
||||
|
@ -190,6 +193,10 @@ public:
|
|||
gl::globalRelease(false);
|
||||
CHECK_GL_ERROR();
|
||||
}
|
||||
#if defined(Q_OS_MAC)
|
||||
_context->doneCurrent();
|
||||
#endif
|
||||
|
||||
_refreshRateController->sleepThreadIfNeeded(this, currentPlugin->isHmd());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue