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 <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user