2017-06-17 17:26:19 +01:00
|
|
|
Index: qtbase-opensource-src-5.9.0/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
2017-02-28 15:37:57 +00:00
|
|
|
===================================================================
|
2017-06-17 17:26:19 +01:00
|
|
|
--- qtbase-opensource-src-5.9.0.orig/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
|
|
+++ qtbase-opensource-src-5.9.0/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
|
|
@@ -580,7 +580,14 @@ QFunctionPointer QGLXContext::getProcAdd
|
|
|
|
#if QT_CONFIG(library)
|
2017-02-28 15:37:57 +00:00
|
|
|
extern const QString qt_gl_library_name();
|
|
|
|
// QLibrary lib(qt_gl_library_name());
|
|
|
|
+ // Check system library paths first
|
|
|
|
QLibrary lib(QLatin1String("GL"));
|
2017-04-16 15:45:27 +01:00
|
|
|
+#ifdef NIXPKGS_MESA_GL
|
2017-02-28 15:37:57 +00:00
|
|
|
+ if (!lib.load()) {
|
|
|
|
+ // Fallback to Mesa driver
|
2017-04-16 15:45:27 +01:00
|
|
|
+ lib.setFileName(QLatin1String(NIXPKGS_MESA_GL));
|
2017-02-28 15:37:57 +00:00
|
|
|
+ }
|
2017-04-16 15:45:27 +01:00
|
|
|
+#endif // NIXPKGS_MESA_GL
|
2017-02-28 15:37:57 +00:00
|
|
|
glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
|
2017-04-16 15:45:27 +01:00
|
|
|
#endif
|
2017-02-28 15:37:57 +00:00
|
|
|
}
|