projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98abd1b
)
always print error messages, unless LIBGL_DEBUG=quiet
author
Bernardo Innocenti
<bernie@develer.com>
Tue, 27 Mar 2007 14:05:33 +0000
(08:05 -0600)
committer
Brian
<brian@yutani.localnet.net>
Tue, 27 Mar 2007 14:05:33 +0000
(08:05 -0600)
src/glx/x11/dri_glx.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/dri_glx.c
b/src/glx/x11/dri_glx.c
index d88ce913644ed7ae06193f457e0bdeac6e446e4d..a8d9306b9910f84c78d47ce86c219834a77aebd0 100644
(file)
--- 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);