mesa: remove dead code in _mesa_error

Remove early and unused snprintf and where[] string.
This commit is contained in:
Keith Whitwell 2009-07-14 16:25:59 +01:00
parent 6c9d8a6f24
commit df5f7a6761

View file

@ -1102,14 +1102,8 @@ _mesa_error( GLcontext *ctx, GLenum error, const char *fmtString, ... )
}
if (debug) {
va_list args;
char where[MAXSTRING];
const char *errstr;
va_start( args, fmtString );
vsnprintf( where, MAXSTRING, fmtString, args );
va_end( args );
switch (error) {
case GL_NO_ERROR:
errstr = "GL_NO_ERROR";