2012-07-14 23:03:36 +04:00
|
|
|
diff -Naur xorg-server-1.12.2-orig/glx/glxdricommon.c xorg-server-1.12.2/glx/glxdricommon.c
|
|
|
|
--- xorg-server-1.12.2-orig/glx/glxdricommon.c 2012-05-17 13:09:02.000000000 -0400
|
|
|
|
+++ xorg-server-1.12.2/glx/glxdricommon.c 2012-07-14 14:57:37.972791909 -0400
|
|
|
|
@@ -219,10 +219,14 @@
|
|
|
|
int i;
|
|
|
|
void *driver;
|
|
|
|
char filename[PATH_MAX];
|
|
|
|
+ char *real_dri_driver_path;
|
|
|
|
const __DRIextension **extensions;
|
2009-11-07 00:15:59 +03:00
|
|
|
|
2012-07-14 23:03:36 +04:00
|
|
|
+ real_dri_driver_path = getenv("XORG_DRI_DRIVER_PATH");
|
2009-11-07 00:15:59 +03:00
|
|
|
+ if (!real_dri_driver_path) real_dri_driver_path = dri_driver_path;
|
|
|
|
+
|
|
|
|
snprintf(filename, sizeof filename, "%s/%s_dri.so",
|
|
|
|
- dri_driver_path, driverName);
|
|
|
|
+ real_dri_driver_path, driverName);
|
|
|
|
|
2012-07-14 23:03:36 +04:00
|
|
|
driver = dlopen(filename, RTLD_LAZY | RTLD_LOCAL);
|
|
|
|
if (driver == NULL) {
|