mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +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() {
|
||||
PROFILE_RANGE(__FUNCTION__);
|
||||
if (nullptr == _displayPlugin) {
|
||||
return;
|
||||
}
|
||||
auto displayPlugin = getActiveDisplayPlugin();
|
||||
displayPlugin->preRender();
|
||||
_offscreenContext->makeCurrent();
|
||||
|
|
Loading…
Reference in a new issue