aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-27 17:00:15 -0700
committerBrian Paul <[email protected]>2010-01-27 17:04:30 -0700
commit4e5364d6fcd63b6f927ac4fb76effec0007d6797 (patch)
tree54606d31209c1c45627f8cc827e79f776c732a9f /src/mesa/main
parentf103f7e460131f582c0ea8129640ad19178a1ff9 (diff)
mesa: more info in glActiveTexture error msg
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 25333d8994a..2b26f651a54 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -291,7 +291,8 @@ _mesa_ActiveTextureARB(GLenum texture)
_mesa_lookup_enum_by_nr(texture));
if (texUnit >= ctx->Const.MaxTextureImageUnits) {
- _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture)");
+ _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture=%s)",
+ _mesa_lookup_enum_by_nr(texture));
return;
}