From 3fdbc46b42dcfd3af52d851378dd38c93eebb2e8 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 8 Sep 2017 11:56:02 +0100 Subject: [PATCH] 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 --- src/glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 44992f18cf0..29b94b8810e 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 -- 2.30.2