loader: Correct layer path lookup name
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 19 Feb 2015 03:03:02 +0000 (20:03 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 19 Feb 2015 03:03:02 +0000 (20:03 -0700)
loader/loader.c

index 3db03e6..cbfd66e 100644 (file)
@@ -522,7 +522,7 @@ static void layer_lib_scan(void)
 #else  // WIN32
     if (geteuid() == getuid()) {
         /* Don't allow setuid apps to use the DRIVER_PATH_ENV env var: */
-        libPaths = getenv(DRIVER_PATH_ENV);
+        libPaths = getenv(LAYERS_PATH_ENV);
     }
     if (libPaths == NULL) {
         libPaths = DEFAULT_XGL_LAYERS_PATH;