summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-02-23 13:56:08 +0100
committerMichal Klocek <michal.klocek@qt.io>2022-02-28 06:13:01 +0100
commit1a50992c2bb56825ab085b8d8343e1effc8a3e8d (patch)
treebea67f8a77410b5779ad492bb8ab0dec91fe92fe
parent123394142c887e049131b823933de88f258152b0 (diff)
Check for loaded opengl library in case-insensitive manner
After a14f2d59141e in qtbase library returned by GetModuleFileName can be "opengl32sw.dll" or as in ci "opengl32sw.DLL" as file extension is filled now by the winapi function. Make comparison case insensitive. Pick-to: 6.2 6.3 dev Fixes: QTBUG-101084 Change-Id: I0816bbef21be40a786246ae9d43f031c5487a4f9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/core/web_engine_context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index 1be28660d..d5a7a5286 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -197,7 +197,7 @@ bool usingSoftwareDynamicGL()
wchar_t path[MAX_PATH];
DWORD size = GetModuleFileName(handle, path, MAX_PATH);
QFileInfo openGLModule(QString::fromWCharArray(path, size));
- return openGLModule.fileName() == QLatin1String("opengl32sw.dll");
+ return !openGLModule.fileName().compare(QLatin1String("opengl32sw.dll"),Qt::CaseInsensitive);
#else
return false;
#endif