mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
_mesa_debug() should be a no-op when not compiled with DEBUG defined.
This commit is contained in:
parent
398471429b
commit
f7c4dc007f
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*@}*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue