Commit 6426f1e9 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Fix no-opengl builds on windows


Change-Id: I134876aa68bd42356c0b897a5d7d5881f27724a4
Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
Showing with 1 addition and 1 deletion
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment