Don't search LIBGL_DRIVERS_PATH, stick to LIBVA_DRIVERS_PATH only or the default... 07/607/1
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Tue, 22 Sep 2009 13:03:23 +0000 (13:03 +0000)
committerAustin Yuan <shengquan.yuan@gmail.com>
Wed, 2 Jun 2010 09:31:08 +0000 (17:31 +0800)
va/va.c

diff --git a/va/va.c b/va/va.c
index fb843e8..2d277e7 100644 (file)
--- a/va/va.c
+++ b/va/va.c
@@ -135,10 +135,6 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
     {
         /* don't allow setuid apps to use LIBVA_DRIVERS_PATH */
         search_path = getenv("LIBVA_DRIVERS_PATH");
-        if (!search_path)
-        {
-            search_path = getenv("LIBGL_DRIVERS_PATH");
-        }
     }
     if (!search_path)
     {