summaryrefslogtreecommitdiff
path: root/src/glx/x11/dri_glx.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-03-09 19:02:56 -0400
committerKristian Høgsberg <krh@redhat.com>2008-03-09 19:02:56 -0400
commitb0f80254340222829b659df7a77ad6de410cd737 (patch)
tree0744af5e4c995e6813719aad671bd5921b6ee44f /src/glx/x11/dri_glx.c
parent03db9c8acb83f7072681876ce5e8d73e1ec922e9 (diff)
Properly revert the libGL loader path breakage.
Diffstat (limited to 'src/glx/x11/dri_glx.c')
-rw-r--r--src/glx/x11/dri_glx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c
index 6c915d800e..0d4f09c499 100644
--- a/src/glx/x11/dri_glx.c
+++ b/src/glx/x11/dri_glx.c
@@ -145,6 +145,7 @@ static void *OpenDriver(const char *driverName)
/* Attempt to make sure libGL symbols will be visible to the driver */
glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL);
+ libPaths = NULL;
if (geteuid() == getuid()) {
/* don't allow setuid apps to use LIBGL_DRIVERS_PATH */
libPaths = getenv("LIBGL_DRIVERS_PATH");