Set attributes for QtWebEngine

This commit is contained in:
Tobias Fella
2023-09-01 00:53:36 +02:00
parent 4fd36fb221
commit 370bbf8a4b

View File

@@ -146,6 +146,8 @@ int main(int argc, char *argv[])
#ifdef HAVE_WEBVIEW
QtWebView::initialize();
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGLRhi);
#endif
#ifdef Q_OS_ANDROID