Commit e45a4d63 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Austin Yuan

Don't search LIBGL_DRIVERS_PATH, stick to LIBVA_DRIVERS_PATH only or the default path.

parent 6e60608c
...@@ -135,10 +135,6 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name) ...@@ -135,10 +135,6 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
{ {
/* don't allow setuid apps to use LIBVA_DRIVERS_PATH */ /* don't allow setuid apps to use LIBVA_DRIVERS_PATH */
search_path = getenv("LIBVA_DRIVERS_PATH"); search_path = getenv("LIBVA_DRIVERS_PATH");
if (!search_path)
{
search_path = getenv("LIBGL_DRIVERS_PATH");
}
} }
if (!search_path) if (!search_path)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment