Skip to content

Commit 6426f1e

Browse files
author
Allan Sandfeld Jensen
committed
Fix no-opengl builds on windows
Change-Id: I134876aa68bd42356c0b897a5d7d5881f27724a4 Reviewed-by: Michal Klocek <[email protected]>
1 parent 4c4698f commit 6426f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/web_engine_context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ bool usingSoftwareDynamicGL()
186186
{
187187
if (QCoreApplication::testAttribute(Qt::AA_UseSoftwareOpenGL))
188188
return true;
189-
#if defined(Q_OS_WIN)
189+
#if defined(Q_OS_WIN) && !defined(QT_NO_OPENGL)
190190
HMODULE handle = static_cast<HMODULE>(QOpenGLContext::openGLModuleHandle());
191191
wchar_t path[MAX_PATH];
192192
DWORD size = GetModuleFileName(handle, path, MAX_PATH);

0 commit comments

Comments
 (0)