mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
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:
parent
14e431b270
commit
3fdbc46b42
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue