Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication

This commit is contained in:
wmayer
2019-06-05 07:28:02 +02:00
parent 9cf127277d
commit c10de2f744

View File

@@ -1653,6 +1653,10 @@ void Application::runApplication(void)
const std::map<std::string,std::string>& cfg = App::Application::Config();
std::map<std::string,std::string>::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