From c10de2f744a310ba115e8d0eccaba6150bfd1073 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 5 Jun 2019 07:28:02 +0200 Subject: [PATCH] Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication --- src/Gui/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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