summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-08 11:56:02 +0100
committerEric Engestrom <[email protected]>2017-09-12 13:53:12 +0100
commit3fdbc46b42dcfd3af52d851378dd38c93eebb2e8 (patch)
tree6fafa1bc35e399c8c5b8094bc111f19691ef8a05 /src/glx
parent14e431b270331ee8c6d638729b4b8e8703f8e52e (diff)
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 <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxcmds.c2
1 files changed, 1 insertions, 1 deletions
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