Create offscreen context at startup and reuse it.

This commit is contained in:
Leonardo Zide
2021-01-01 18:41:28 -08:00
parent 6b2f8fa68c
commit 72763ddc11
9 changed files with 143 additions and 58 deletions
+5
View File
@@ -772,6 +772,11 @@ lcStartupMode lcApplication::Initialize(QList<QPair<QString, bool>>& LibraryPath
#endif
}
#ifdef LC_USE_QOPENGLWIDGET
if (!lcContext::CreateOffscreenContext())
return lcStartupMode::Error;
#endif
gMainWindow = new lcMainWindow();
lcLoadDefaultKeyboardShortcuts();
lcLoadDefaultMouseShortcuts();