Mesa (gallium-mesa-7.4): mesa: improved error msg
Alan Hourihane
alanh at kemper.freedesktop.org
Thu Feb 19 10:49:58 UTC 2009
Module: Mesa
Branch: gallium-mesa-7.4
Commit: 84d9806484c6e7ed4640092de71bc5f2f3c1bcf2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=84d9806484c6e7ed4640092de71bc5f2f3c1bcf2
Author: Brian Paul <brianp at vmware.com>
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 63d8727..1bfb952 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -1440,7 +1440,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;
}
}
More information about the mesa-commit
mailing list