projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14e431b
)
glx: turn LIBGL_DUMP_VISUALID into a boolean
author
Eric Engestrom
<eric.engestrom@imgtec.com>
Fri, 8 Sep 2017 10:56:02 +0000
(11:56 +0100)
committer
Eric Engestrom
<eric.engestrom@imgtec.com>
Tue, 12 Sep 2017 12:53:12 +0000
(13:53 +0100)
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>
src/glx/glxcmds.c
patch
|
blob
|
history
diff --git
a/src/glx/glxcmds.c
b/src/glx/glxcmds.c
index
44992f1
..
29b94b8
100644
(file)
--- 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