diff options
-rw-r--r-- | src/core/web_engine_context.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index fefccae0e..62ed3c2fd 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -354,10 +354,8 @@ WebEngineContext::WebEngineContext() appArgs.append(QString::fromLocal8Bit(qgetenv(kChromiumFlagsEnv)).split(' ')); } -#ifdef Q_OS_WIN bool enableWebGLSoftwareRendering = appArgs.removeAll(QStringLiteral("--enable-webgl-software-rendering")); -#endif bool useEmbeddedSwitches = false; #if defined(QTWEBENGINE_EMBEDDED_SWITCHES) @@ -452,12 +450,10 @@ WebEngineContext::WebEngineContext() bool tryGL = !usingANGLE() && (!usingSoftwareDynamicGL() -#ifdef Q_OS_WIN - // If user requested WebGL support on Windows, instead of using Skia rendering to - // bitmaps, use software rendering via opengl32sw.dll. This might be less + // If user requested WebGL support instead of using Skia rendering to + // bitmaps, use software rendering via software OpenGL. This might be less // performant, but at least provides WebGL support. || enableWebGLSoftwareRendering -#endif ) && !usingQtQuick2DRenderer(); @@ -524,12 +520,10 @@ WebEngineContext::WebEngineContext() if (glType) { parsedCommandLine->AppendSwitchASCII(switches::kUseGL, glType); parsedCommandLine->AppendSwitch(switches::kInProcessGPU); -#ifdef Q_OS_WIN if (enableWebGLSoftwareRendering) { parsedCommandLine->AppendSwitch(switches::kDisableGpuRasterization); parsedCommandLine->AppendSwitch(switches::kIgnoreGpuBlacklist); } -#endif } else { parsedCommandLine->AppendSwitch(switches::kDisableGpu); } |