From: Brian Paul Date: Sat, 14 Sep 2013 15:56:08 +0000 (-0600) Subject: mesa: use caller string in error message in get_label_pointer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69daf335a08934057ef6378b4bac6ca225a461dc;p=mesa.git mesa: use caller string in error message in get_label_pointer() Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/main/objectlabel.c b/src/mesa/main/objectlabel.c index d9e42cfe4a6..bfe9ba20b34 100644 --- a/src/mesa/main/objectlabel.c +++ b/src/mesa/main/objectlabel.c @@ -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;