From 7b3c8b37472d84cc6aac2b178c0d8bb3f789a9bb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 16 Jan 2013 13:32:11 -0800 Subject: mesa: Improve a glTexEnv error message by looking up the enum. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick --- src/mesa/main/texenv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c index e8f3af082a5..73c1d06b4fa 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; } -- cgit v1.2.3