diff options
author | Brian Paul <brianp@vmware.com> | 2009-03-27 14:49:01 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-03 09:07:03 -0600 |
commit | 264058f38af00519e9f180f237a771566117cd8b (patch) | |
tree | c069fcb8f196c6a5697ad7524efbc7a7bfd60996 /src | |
parent | f5a4d20e4aafce04773729dc2dd6175e9538d887 (diff) |
mesa: more error message info
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/matrix.c | 3 |
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]; |