aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-08-29 22:30:58 +0000
committerBrian Paul <[email protected]>2006-08-29 22:30:58 +0000
commitf7c4dc007f5ae964bc4357e9abefcf64131b84c9 (patch)
tree541b02d3c7fe5e9bbed5abbfb66d8551c64a7f6c /src
parent398471429be897cd4c8ef3497ed29c41a2c1acb5 (diff)
_mesa_debug() should be a no-op when not compiled with DEBUG defined.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/imports.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 08f44a8f88a..a09c497795e 100644
--- 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;
}
/*@}*/