From 621c999d823eed077aee9ac0779077ba2f0c5e5a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 18 Feb 2009 13:28:12 -0700 Subject: mesa: improved error msg --- src/mesa/shader/shader_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/shader') diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 38f4cd03c4..828d3f062a 100644 --- a/src/mesa/shader/shader_api.c +++ b/src/mesa/shader/shader_api.c @@ -1469,7 +1469,8 @@ _mesa_use_program(GLcontext *ctx, GLuint program) return; } if (!shProg->LinkStatus) { - _mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgram"); + _mesa_error(ctx, GL_INVALID_OPERATION, + "glUseProgram(program %u not linked)", program); return; } } -- cgit v1.2.3