summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-03-27 14:49:01 -0600
committerBrian Paul <brianp@vmware.com>2009-04-03 09:07:03 -0600
commit264058f38af00519e9f180f237a771566117cd8b (patch)
treec069fcb8f196c6a5697ad7524efbc7a7bfd60996 /src/mesa/main
parentf5a4d20e4aafce04773729dc2dd6175e9538d887 (diff)
mesa: more error message info
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/matrix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c
index aebf48134f..7388276c45 100644
--- a/src/mesa/main/matrix.c
+++ b/src/mesa/main/matrix.c
@@ -161,7 +161,8 @@ _mesa_MatrixMode( GLenum mode )
break;
case GL_TEXTURE:
if (ctx->Texture.CurrentUnit >= ctx->Const.MaxTextureCoordUnits) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "glMatrixMode(texcoord unit)");
+ _mesa_error(ctx, GL_INVALID_OPERATION, "glMatrixMode(invalid unit %d)",
+ ctx->Texture.CurrentUnit);
return;
}
ctx->CurrentStack = &ctx->TextureMatrixStack[ctx->Texture.CurrentUnit];