improved error mesages
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Nov 2006 21:38:26 +0000 (21:38 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Nov 2006 21:38:26 +0000 (21:38 +0000)
src/mesa/shader/shaderobjects.c

index c7a1cec48e24d8bc49ac85d8187a17698485a909..da4d5c84721d2439842e943ab9dad42691f5f5a9 100644 (file)
@@ -307,14 +307,14 @@ _mesa_UseProgramObjectARB(GLhandleARB programObj)
    FLUSH_VERTICES(ctx, _NEW_PROGRAM);
 
    if (programObj != 0) {
-      GET_PROGRAM(pro, programObj, "glUseProgramObjectARB");
+      GET_PROGRAM(pro, programObj, "glUseProgramObjectARB(program)");
 
       if (pro == NULL)
          return;
 
       if ((**pro).GetLinkStatus(pro) == GL_FALSE) {
          RELEASE_PROGRAM(pro);
-         _mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgramObjectARB");
+         _mesa_error(ctx, GL_INVALID_OPERATION, "glUseProgramObjectARB(not linked)");
          return;
       }