OSDN Git Service

mesa: improved error msg
authorBrian Paul <brianp@vmware.com>
Wed, 18 Feb 2009 20:28:12 +0000 (13:28 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Feb 2009 20:28:12 +0000 (13:28 -0700)
src/mesa/shader/shader_api.c

index 38f4cd0..828d3f0 100644 (file)
@@ -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;
       }
    }