File qt-5.15.14-fix-finding-egl-module.patch of Package mingw64-libqt5-qtbase

--- qtbase.orig/src/plugins/platforms/windows/qwindowseglcontext.cpp    2024-02-12 17:18:47.045133535 +0100
+++ qtbase/src/plugins/platforms/windows/qwindowseglcontext.cpp 2024-07-11 08:46:32.459482029 +0200
@@ -115,7 +115,11 @@
 
 bool QWindowsLibEGL::init()
 {
-    const char dllName[] = QT_STRINGIFY(LIBEGL_NAME)
+    const char dllName[] = 
+#ifdef Q_CC_MINGW
+    "lib"
+#endif
+    QT_STRINGIFY(LIBEGL_NAME)
 #if defined(QT_DEBUG)
     "d"
 #endif
@@ -172,7 +176,11 @@
 bool QWindowsLibGLESv2::init()
 {
 
-    const char dllName[] = QT_STRINGIFY(LIBGLESV2_NAME)
+    const char dllName[] =
+#ifdef Q_CC_MINGW
+    "lib"
+#endif
+    QT_STRINGIFY(LIBGLESV2_NAME)
 #if defined(QT_DEBUG)
     "d"
 #endif
openSUSE Build Service is sponsored by