projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3984714
)
_mesa_debug() should be a no-op when not compiled with DEBUG defined.
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 29 Aug 2006 22:30:58 +0000
(22:30 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 29 Aug 2006 22:30:58 +0000
(22:30 +0000)
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index 08f44a8f88aafc878ffa47edd2c4c29f17f2c6a3..a09c497795e1d7374cd869ac0a227900d31012c6 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-1166,9
+1166,9
@@
_mesa_error( GLcontext *ctx, GLenum error, const char *fmtString, ... )
void
_mesa_debug( const GLcontext *ctx, const char *fmtString, ... )
{
+#ifdef DEBUG
char s[MAXSTRING];
va_list args;
- (void) ctx;
va_start(args, fmtString);
vsnprintf(s, MAXSTRING, fmtString, args);
va_end(args);
@@
-1177,6
+1177,9
@@
_mesa_debug( const GLcontext *ctx, const char *fmtString, ... )
#else
fprintf(stderr, "Mesa: %s", s);
#endif
+#endif /* DEBUG */
+ (void) ctx;
+ (void) fmtString;
}
/*@}*/