From eb9f64c845eca80ec3f609c3dca62b353321ba86 Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@qt.io>
Date: Fri, 27 Jul 2018 09:42:36 +0200
Subject: [PATCH] Fix --enable-webgl-software-rendering with drivers that don't
 support OpenGL

--enable-webgl-software-rendering is supposed to be used together
with mesa llvmpipe / opengl32sw.dll. However, Chromium did still use
the built-in GPU blacklist to disable features based on the hardware
GPU driver.

Avoid this by always passing --ignore-gpu-blacklist for this mode.

Task-number: QTBUG-69236
Change-Id: I430d101f6eac64478585de54f705e76859c80597
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
---
 src/core/web_engine_context.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index 35402cdb0..62d62119a 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -493,8 +493,10 @@ WebEngineContext::WebEngineContext()
         parsedCommandLine->AppendSwitchASCII(switches::kUseGL, glType);
         parsedCommandLine->AppendSwitch(switches::kInProcessGPU);
 #ifdef Q_OS_WIN
-        if (enableWebGLSoftwareRendering)
+        if (enableWebGLSoftwareRendering) {
             parsedCommandLine->AppendSwitch(switches::kDisableGpuRasterization);
+            parsedCommandLine->AppendSwitch(switches::kIgnoreGpuBlacklist);
+        }
 #endif
     } else {
         parsedCommandLine->AppendSwitch(switches::kDisableGpu);
-- 
GitLab