mesa: use caller string in error message in get_label_pointer()
authorBrian Paul <brianp@vmware.com>
Sat, 14 Sep 2013 15:56:08 +0000 (09:56 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Oct 2013 16:10:00 +0000 (10:10 -0600)
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/mesa/main/objectlabel.c

index d9e42cfe4a6b02ae6f8d7ca1b3fd8c9e9a7c13eb..bfe9ba20b34aeff0e3d7068d2596d10386ebe8c5 100644 (file)
@@ -224,7 +224,7 @@ get_label_pointer(struct gl_context *ctx, GLenum identifier, GLuint name,
    }
 
    if (NULL == labelPtr) {
-      _mesa_error(ctx, GL_INVALID_VALUE, "glObjectLabel(name = %u)", name);
+      _mesa_error(ctx, GL_INVALID_VALUE, "%s(name = %u)", caller, name);
    }
 
    return labelPtr;