diff options
author | Kai Koehne <kai.koehne@qt.io> | 2018-07-27 09:42:36 +0200 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@qt.io> | 2018-08-16 05:21:36 +0000 |
commit | eb9f64c845eca80ec3f609c3dca62b353321ba86 (patch) | |
tree | 4b0c06173bc5133e8e36b9a090bece7af093aac3 | |
parent | 1cf852f6312e2918765e30f02657e9ad04e5cdff (diff) |
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>
-rw-r--r-- | src/core/web_engine_context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |