Просмотр исходного кода

let Qt use OpenGLES instead of desktop OpenGL to workaround bugs

should help picking a working rendering pipeline on windows

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien 3 лет назад
Родитель
Сommit
d1408df7ba
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/gui/main.cpp

+ 1 - 0
src/gui/main.cpp

@@ -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"");