2015-12-19 18:56:50 +01:00
|
|
|
Index: qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
|
|
===================================================================
|
|
|
|
--- qt-everywhere-opensource-src-5.5.1.orig/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
|
|
+++ qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
2015-12-19 19:15:33 +01:00
|
|
|
@@ -563,7 +563,12 @@ void (*QGLXContext::getProcAddress(const
|
2015-12-19 18:56:50 +01:00
|
|
|
{
|
|
|
|
extern const QString qt_gl_library_name();
|
|
|
|
// QLibrary lib(qt_gl_library_name());
|
2015-12-19 19:15:33 +01:00
|
|
|
+ // Check system library paths first
|
|
|
|
QLibrary lib(QLatin1String("GL"));
|
|
|
|
+ if (!lib.load()) {
|
|
|
|
+ // Fallback to Mesa driver
|
2016-01-28 13:24:26 +01:00
|
|
|
+ lib.setFileName(QLatin1String("@mesa_lib@/lib/libGL"));
|
2015-12-19 19:15:33 +01:00
|
|
|
+ }
|
2015-12-19 18:56:50 +01:00
|
|
|
glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
|
|
|
|
}
|
|
|
|
}
|