From: Kristian Høgsberg Date: Sun, 9 Mar 2008 23:02:56 +0000 (-0400) Subject: Properly revert the libGL loader path breakage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0f80254340222829b659df7a77ad6de410cd737;p=mesa.git Properly revert the libGL loader path breakage. --- diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 6c915d800e0..0d4f09c4994 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");