[Mesa-dev] [PATCH mesa 07/10] glx: turn LIBGL_DUMP_VISUALID into a boolean

Eric Engestrom eric.engestrom at imgtec.com
Fri Sep 8 12:40:53 UTC 2017


Instead of setting based on set/unset, allow users to use boolean values.

Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 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 44992f18cf..29b94b8810 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
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list