mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Fix crash on startup on mac
This commit is contained in:
parent
74e79f15d8
commit
2878950dbe
1 changed files with 3 additions and 0 deletions
|
@ -902,6 +902,9 @@ void doInBatch(RenderArgs* args, F f) {
|
||||||
|
|
||||||
void Application::paintGL() {
|
void Application::paintGL() {
|
||||||
PROFILE_RANGE(__FUNCTION__);
|
PROFILE_RANGE(__FUNCTION__);
|
||||||
|
if (nullptr == _displayPlugin) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto displayPlugin = getActiveDisplayPlugin();
|
auto displayPlugin = getActiveDisplayPlugin();
|
||||||
displayPlugin->preRender();
|
displayPlugin->preRender();
|
||||||
_offscreenContext->makeCurrent();
|
_offscreenContext->makeCurrent();
|
||||||
|
|
Loading…
Reference in a new issue