From: Brian Paul Date: Wed, 18 Feb 2009 20:28:12 +0000 (-0700) Subject: mesa: improved error msg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=621c999d823eed077aee9ac0779077ba2f0c5e5a;p=mesa.git mesa: improved error msg --- diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 38f4cd03c4f..828d3f062ac 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; } }