projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8f72f
)
mesa: Improve a glTexEnv error message by looking up the enum.
author
Eric Anholt
<eric@anholt.net>
Wed, 16 Jan 2013 21:32:11 +0000
(13:32 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 22 Jan 2013 05:26:46 +0000
(21:26 -0800)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texenv.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texenv.c
b/src/mesa/main/texenv.c
index
e8f3af0
..
73c1d06
100644
(file)
--- 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;
}