2012-07-14 19:03:36 +00: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-06 21:15:59 +00:00
|
|
|
|
2012-07-14 19:03:36 +00:00
|
|
|
+ real_dri_driver_path = getenv("XORG_DRI_DRIVER_PATH");
|
2009-11-06 21:15:59 +00: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 19:03:36 +00:00
|
|
|
driver = dlopen(filename, RTLD_LAZY | RTLD_LOCAL);
|
|
|
|
if (driver == NULL) {
|