mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
_context->makeCurrent();
|
||||||
|
#endif
|
||||||
// Execute the frame and present it to the display device.
|
// Execute the frame and present it to the display device.
|
||||||
{
|
{
|
||||||
PROFILE_RANGE(render, "PluginPresent")
|
PROFILE_RANGE(render, "PluginPresent")
|
||||||
|
@ -190,6 +193,10 @@ public:
|
||||||
gl::globalRelease(false);
|
gl::globalRelease(false);
|
||||||
CHECK_GL_ERROR();
|
CHECK_GL_ERROR();
|
||||||
}
|
}
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
_context->doneCurrent();
|
||||||
|
#endif
|
||||||
|
|
||||||
_refreshRateController->sleepThreadIfNeeded(this, currentPlugin->isHmd());
|
_refreshRateController->sleepThreadIfNeeded(this, currentPlugin->isHmd());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue