mesa: better error message

This commit is contained in:
Brian Paul
2009-10-30 19:03:44 -06:00
parent 7c8bed62e0
commit a71edc9455

View File

@@ -1268,8 +1268,8 @@ texture_error_check( GLcontext *ctx, GLenum target,
if (_mesa_base_tex_format(ctx, internalFormat) < 0) { if (_mesa_base_tex_format(ctx, internalFormat) < 0) {
if (!isProxy) { if (!isProxy) {
_mesa_error(ctx, GL_INVALID_VALUE, _mesa_error(ctx, GL_INVALID_VALUE,
"glTexImage%dD(internalFormat=0x%x)", "glTexImage%dD(internalFormat=%s)",
dimensions, internalFormat); dimensions, _mesa_lookup_enum_by_nr(internalFormat));
} }
return GL_TRUE; return GL_TRUE;
} }