Module: Mesa
Branch: master
Commit: 3fdbc46b42dcfd3af52d851378dd38c93eebb2e8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fdbc46b42dcfd3af52d851378dd38c93eebb2e8

Author: Eric Engestrom <[email protected]>
Date:   Fri Sep  8 11:56:02 2017 +0100

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]>

---

 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to