From 37fac8e46cd77edc9fab4ebf29cb7ab3b529135d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 3 Mar 2017 11:22:43 +0100 Subject: 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 --- src/core/web_engine_context.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(QOpenGLContext::openGLModuleHandle()); wchar_t path[MAX_PATH]; -- cgit v1.2.3