char s[MAX_DEBUG_MESSAGE_LENGTH];
if (ctx->ErrorDebugCount) {
- _mesa_snprintf(s, MAX_DEBUG_MESSAGE_LENGTH, "%d similar %s errors",
+ _mesa_snprintf(s, MAX_DEBUG_MESSAGE_LENGTH, "%d similar %s errors",
ctx->ErrorDebugCount,
_mesa_enum_to_string(ctx->ErrorValue));
{
char str[MAX_DEBUG_MESSAGE_LENGTH];
va_list args;
- va_start( args, fmtString );
+ va_start( args, fmtString );
(void) _mesa_vsnprintf( str, MAX_DEBUG_MESSAGE_LENGTH, fmtString, args );
va_end( args );
-
+
if (ctx)
flush_delayed_errors( ctx );
if (numCalls < 50) {
numCalls++;
- va_start( args, fmtString );
+ va_start( args, fmtString );
_mesa_vsnprintf( str, MAX_DEBUG_MESSAGE_LENGTH, fmtString, args );
va_end( args );
fprintf(stderr, "Mesa %s implementation error: %s\n",
* If debugging is enabled (either at compile-time via the DEBUG macro, or
* run-time via the MESA_DEBUG environment variable), report the error with
* _mesa_debug().
- *
+ *
* \param ctx the GL context.
* \param error the error value.
* \param fmtString printf() style format string, followed by optional args
/**
* Report debug information. Print error message to stderr via fprintf().
* No-op if DEBUG mode not enabled.
- *
+ *
* \param ctx GL context.
* \param fmtString printf()-style format string, followed by optional args.
*/