From: Eric Anholt Date: Wed, 16 Jan 2013 21:32:11 +0000 (-0800) Subject: mesa: Improve a glTexEnv error message by looking up the enum. X-Git-Tag: mesa-9.1-rc1~229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b3c8b37472d84cc6aac2b178c0d8bb3f789a9bb;p=platform%2Fupstream%2Fmesa.git mesa: Improve a glTexEnv error message by looking up the enum. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index e8f3af0..73c1d06 100644 --- a/src/mesa/main/texenv.c +++ b/src/mesa/main/texenv.c @@ -507,7 +507,8 @@ _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param ) } } else { - _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(target=0x%x)",target ); + _mesa_error(ctx, GL_INVALID_ENUM, "glTexEnv(target=%s)", + _mesa_lookup_enum_by_nr(target)); return; }