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>
This commit is contained in:
Matthieu Gallien 2022-09-01 13:53:27 +02:00 committed by Matthieu Gallien
parent 0092ad15c7
commit d1408df7ba
1 changed files with 1 additions and 0 deletions

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