From 26ebf2d1f99f8a7f4a94073087bd0ed68cf10ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Sat, 15 Feb 2020 18:53:02 +0100 Subject: [PATCH] Set Qt::AA_ShareOpenGLContexts on the QApplication Fixes one warning from QtWebEngine and probably improves performance --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 5acfb8e..efeffb6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,6 +35,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) { QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QGuiApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QApplication app(argc, argv); QCoreApplication::setOrganizationName("KDE"); QCoreApplication::setOrganizationDomain("mobile.kde.org"); -- GitLab