From: Brian Paul Date: Fri, 27 Mar 2009 20:49:01 +0000 (-0600) Subject: mesa: more error message info X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=264058f38af00519e9f180f237a771566117cd8b;p=mesa.git mesa: more error message info --- diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c index aebf48134fd..7388276c458 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];