diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 5c2451b86a..eb947fb65b 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -1653,6 +1653,10 @@ void Application::runApplication(void) const std::map& cfg = App::Application::Config(); std::map::const_iterator it; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) + QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); +#endif + // A new QApplication Base::Console().Log("Init: Creating Gui::Application and QApplication\n"); // if application not yet created by the splasher