summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-18 13:28:12 -0700
committerBrian Paul <brianp@vmware.com>2009-02-18 13:28:12 -0700
commit621c999d823eed077aee9ac0779077ba2f0c5e5a (patch)
treefe1c54cbdd0dfd67e1ecf7a33c2c9ef12507a7c5 /src
parent5b2f8dc01300058d43d8043aa897722f39657e93 (diff)
mesa: improved error msg
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/shader_api.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}