mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:37:19 +02:00
REintroduce the gl context make current and done for Macos...
This commit is contained in:
parent
1b67042091
commit
5d87c4caad
1 changed files with 6 additions and 0 deletions
|
@ -178,6 +178,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")
|
||||||
|
@ -186,6 +189,9 @@ public:
|
||||||
gl::globalRelease(false);
|
gl::globalRelease(false);
|
||||||
CHECK_GL_ERROR();
|
CHECK_GL_ERROR();
|
||||||
}
|
}
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
_context->doneCurrent();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
_context->doneCurrent();
|
_context->doneCurrent();
|
||||||
|
|
Loading…
Reference in a new issue