OSDN Git Service
(root)
/
android-x86
/
external-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
d88ce91
..
a8d9306
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);