diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-31 17:31:03 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-09-04 19:12:04 +0000 |
commit | 6426f1e93622cb08a2286705398e7762cbcd0a45 (patch) | |
tree | e3a698f1ad30138a7a88a052f1d017bdc2fbc5dc /src/core/web_engine_context.cpp | |
parent | 4c4698fd2ecb5d1eb86b6cd9429f20af093a481a (diff) |
Fix no-opengl builds on windowsv5.11.2
Change-Id: I134876aa68bd42356c0b897a5d7d5881f27724a4
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 62d62119a..48e5bc438 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -186,7 +186,7 @@ bool usingSoftwareDynamicGL() { if (QCoreApplication::testAttribute(Qt::AA_UseSoftwareOpenGL)) return true; -#if defined(Q_OS_WIN) +#if defined(Q_OS_WIN) && !defined(QT_NO_OPENGL) HMODULE handle = static_cast<HMODULE>(QOpenGLContext::openGLModuleHandle()); wchar_t path[MAX_PATH]; DWORD size = GetModuleFileName(handle, path, MAX_PATH); |