let Qt use OpenGLES instead of desktop OpenGL to workaround bugs
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 1 Sep 2022 11:53:27 +0000 (13:53 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Sun, 4 Sep 2022 20:20:38 +0000 (22:20 +0200)
should help picking a working rendering pipeline on windows

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/main.cpp

index 90f6631c5922dce8e2521a511a9d1000b3a5ac15..7b457366a9823d9bd410a7835c41229760165b89 100644 (file)
@@ -59,6 +59,7 @@ void warnSystray()
 int main(int argc, char **argv)
 {
     qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox");
+    QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
 
 #ifdef Q_OS_WIN
     SetDllDirectory(L"");