From: Eric Engestrom Date: Fri, 8 Sep 2017 10:56:02 +0000 (+0100) Subject: glx: turn LIBGL_DUMP_VISUALID into a boolean X-Git-Tag: upstream/18.1.0~6096 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fdbc46b42dcfd3af52d851378dd38c93eebb2e8;p=platform%2Fupstream%2Fmesa.git glx: turn LIBGL_DUMP_VISUALID into a boolean Instead of setting based on set/unset, allow users to use boolean values. Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 44992f1..29b94b8 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -1288,7 +1288,7 @@ glXChooseVisual(Display * dpy, int screen, int *attribList) } #ifdef GLX_USE_APPLEGL - if(visualList && getenv("LIBGL_DUMP_VISUALID")) { + if(visualList && env_var_as_boolean("LIBGL_DUMP_VISUALID", false)) { printf("visualid 0x%lx\n", visualList[0].visualid); } #endif