Mesa (gallium-mesa-7.4): mesa: improved error msg

Alan Hourihane alanh at kemper.freedesktop.org
Tue Feb 24 10:44:30 UTC 2009


Module: Mesa
Branch: gallium-mesa-7.4
Commit: 0ab36958ea219e9c424c565a6120fe655cc0190f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ab36958ea219e9c424c565a6120fe655cc0190f

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 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;
       }
    }




More information about the mesa-commit mailing list