diff options
author | Eric Anholt <[email protected]> | 2013-01-16 13:32:11 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-01-21 21:26:46 -0800 |
commit | 7b3c8b37472d84cc6aac2b178c0d8bb3f789a9bb (patch) | |
tree | 6e0f39c8bd6a06311ec65035829ab101b782808d /src/mesa/main/texenv.c | |
parent | 4d8f72f2bcf04f2af95e4eb43c9e3c65262b3974 (diff) |
mesa: Improve a glTexEnv error message by looking up the enum.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/texenv.c')
-rw-r--r-- | src/mesa/main/texenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |