diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 02506d1397..94e0ac9124 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,7 +59,15 @@ int runMixxx(MixxxApplication* pApp, const CmdlineArgs& args) { &mainWindow, &MixxxMainWindow::initializationProgressUpdate); pCoreServices->initialize(pApp); + +#ifdef MIXXX_USE_QOPENGL + // Will call initialize when the initial wglwidget's + // qopenglwindow has been exposed + mainWindow.initializeQOpenGL(); +#else mainWindow.initialize(); +#endif + pCoreServices->getControllerManager()->setUpDevices(); // If startup produced a fatal error, then don't even start the @@ -124,6 +132,9 @@ int main(int argc, char * argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif +#ifdef MIXXX_USE_QOPENGL + QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); +#endif // workaround for https://bugreports.qt.io/browse/QTBUG-84363 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) && QT_VERSION < QT_VERSION_CHECK(5, 15, 1) |