projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5a4d20
)
mesa: more error message info
author
Brian Paul
<brianp@vmware.com>
Fri, 27 Mar 2009 20:49:01 +0000
(14:49 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 3 Apr 2009 15:07:03 +0000
(09:07 -0600)
src/mesa/main/matrix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/matrix.c
b/src/mesa/main/matrix.c
index
aebf481
..
7388276
100644
(file)
--- 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];