diff options
author | Stefan Dirsch <[email protected]> | 2014-08-26 22:47:51 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-09-09 19:46:57 +0100 |
commit | 49022a971390afda5ce1661c388b92ad3af6e1de (patch) | |
tree | 6711d2853d666e49e1d9cc61828a4ce43588ccf1 | |
parent | 3d8b53ffb4ce4feff8326a62354386c9bc0bca27 (diff) |
xmlconfig: suppress libGL warnings when LIBGL_DEBUG == "quiet"
Let's handle LIBGL_DEBUG env. variable in Mesa in a consistent way.
Fixes: https://bugzilla.novell.com/show_bug.cgi?id=895730
Signed-off-by: Stefan Dirsch <[email protected]>
Reviewed-by: Courtney Goeltzenleuchter <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/common/xmlconfig.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index ce376475c3e..8e48522e2e7 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.c +++ b/src/mesa/drivers/dri/common/xmlconfig.c @@ -429,8 +429,10 @@ static void __driUtilMessage(const char *f, ...) { va_list args; + const char *libgl_debug; - if (getenv("LIBGL_DEBUG")) { + libgl_debug=getenv("LIBGL_DEBUG"); + if (libgl_debug && !strstr(libgl_debug, "quiet")) { fprintf(stderr, "libGL: "); va_start(args, f); vfprintf(stderr, f, args); |