Module: Mesa Branch: mesa_7_4_branch Commit: 0ab36958ea219e9c424c565a6120fe655cc0190f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ab36958ea219e9c424c565a6120fe655cc0190f
Author: Brian Paul <[email protected]> Date: Wed Feb 18 13:41:12 2009 -0700 mesa: improved error msg (cherry picked from master, commit 621c999d823eed077aee9ac0779077ba2f0c5e5a) --- src/mesa/shader/shader_api.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 6d1b8f3..663aac5 100644 --- a/src/mesa/shader/shader_api.c +++ b/src/mesa/shader/shader_api.c @@ -1433,7 +1433,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; } } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
