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 38f4cd03c4f1b7753d51cd7926b56da900fc5904..828d3f062acbfea3ffda7625a1e676007d7b220e 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;
       }
    }