From: Brian Paul Date: Sat, 31 Oct 2009 01:03:44 +0000 (-0600) Subject: mesa: better error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a71edc9455ef81a8dd5ec284e88061a585e63580;p=mesa.git mesa: better error message --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 73a555a1816..69ef2cca5ee 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1268,8 +1268,8 @@ texture_error_check( GLcontext *ctx, GLenum target, if (_mesa_base_tex_format(ctx, internalFormat) < 0) { if (!isProxy) { _mesa_error(ctx, GL_INVALID_VALUE, - "glTexImage%dD(internalFormat=0x%x)", - dimensions, internalFormat); + "glTexImage%dD(internalFormat=%s)", + dimensions, _mesa_lookup_enum_by_nr(internalFormat)); } return GL_TRUE; }