summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-03 11:22:43 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-03 18:08:45 +0000
commit37fac8e46cd77edc9fab4ebf29cb7ab3b529135d (patch)
treeea601bd92425a0e9179c687baa8b2a538a9fa44e
parent3f1805f8569337a21b72324d5edad329d5dfe872 (diff)
Handle Qt::AA_UseSoftwareOpenGL
Switch to software mode if it was requested with application attributes. Task-number: QTBUG-59273 Change-Id: Ia48b4587a3cbe3590ee9231375e07d45381bc7b2 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/core/web_engine_context.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index b88f6308f..b53234b45 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -133,6 +133,8 @@ bool usingANGLE()
bool usingSoftwareDynamicGL()
{
+ if (QCoreApplication::testAttribute(Qt::AA_UseSoftwareOpenGL))
+ return true;
#if defined(Q_OS_WIN)
HMODULE handle = static_cast<HMODULE>(QOpenGLContext::openGLModuleHandle());
wchar_t path[MAX_PATH];