Mesa (master): mesa: improved error msg

Brian Paul brianp at kemper.freedesktop.org
Wed Feb 18 20:32:09 UTC 2009


Module: Mesa
Branch: master
Commit: 621c999d823eed077aee9ac0779077ba2f0c5e5a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=621c999d823eed077aee9ac0779077ba2f0c5e5a

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Feb 18 13:28:12 2009 -0700

mesa: improved error msg

---

 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 38f4cd0..828d3f0 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;
       }
    }




More information about the mesa-commit mailing list