2008-10-08 19:02:48 +02:00
|
|
|
diff -rc xorg-server-X11R7.2-1.2.0-orig/glx/glxdri.c xorg-server-X11R7.2-1.2.0/glx/glxdri.c
|
|
|
|
*** xorg-server-X11R7.2-1.2.0-orig/glx/glxdri.c Tue Jan 23 04:13:14 2007
|
|
|
|
--- xorg-server-X11R7.2-1.2.0/glx/glxdri.c Tue Feb 27 00:15:38 2007
|
2007-02-27 00:50:03 +01:00
|
|
|
***************
|
|
|
|
*** 945,952 ****
|
|
|
|
goto handle_error;
|
|
|
|
}
|
|
|
|
|
|
|
|
snprintf(filename, sizeof filename, "%s/%s_dri.so",
|
|
|
|
! dri_driver_path, driverName);
|
|
|
|
|
|
|
|
screen->driver = dlopen(filename, RTLD_LAZY | RTLD_LOCAL);
|
|
|
|
if (screen->driver == NULL) {
|
|
|
|
--- 945,955 ----
|
|
|
|
goto handle_error;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ char *real_dri_driver_path = getenv("XORG_DRI_DRIVER_PATH");
|
|
|
|
+ if (!real_dri_driver_path) real_dri_driver_path = dri_driver_path;
|
|
|
|
+
|
|
|
|
snprintf(filename, sizeof filename, "%s/%s_dri.so",
|
|
|
|
! real_dri_driver_path, driverName);
|
|
|
|
|
|
|
|
screen->driver = dlopen(filename, RTLD_LAZY | RTLD_LOCAL);
|
|
|
|
if (screen->driver == NULL) {
|