diff options
author | Bernardo Innocenti <bernie@develer.com> | 2007-03-27 08:05:33 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-03-27 08:05:33 -0600 |
commit | a83593922218b3fc88d3e553f8db079b188bd068 (patch) | |
tree | 77d25191891115e1d4c124bf408c5b07d1ab48e4 /src/glx/x11/dri_glx.c | |
parent | 98abd1bbc8351c1fcb7de9fe91129c8a75a66b87 (diff) | |
download | external_mesa3d-a83593922218b3fc88d3e553f8db079b188bd068.zip external_mesa3d-a83593922218b3fc88d3e553f8db079b188bd068.tar.gz external_mesa3d-a83593922218b3fc88d3e553f8db079b188bd068.tar.bz2 |
always print error messages, unless LIBGL_DEBUG=quiet
Diffstat (limited to 'src/glx/x11/dri_glx.c')
-rw-r--r-- | src/glx/x11/dri_glx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index d88ce91..a8d9306 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -81,11 +81,15 @@ static void InfoMessageF(const char *f, ...) } } +/** + * Print error to stderr, unless LIBGL_DEBUG=="quiet". + */ static void ErrorMessageF(const char *f, ...) { va_list args; + const char *env; - if (getenv("LIBGL_DEBUG")) { + if ((env = getenv("LIBGL_DEBUG")) && !strstr(env, "quiet")) { fprintf(stderr, "libGL error: "); va_start(args, f); vfprintf(stderr, f, args); |