[Mesa-dev] [PATCH 2/3] mesa: use caller string in error message in get_label_pointer()

Brian Paul brianp at vmware.com
Sat Sep 14 09:16:20 PDT 2013


---
 src/mesa/main/objectlabel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/objectlabel.c b/src/mesa/main/objectlabel.c
index d9e42cf..bfe9ba2 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;
-- 
1.7.10.4



More information about the mesa-dev mailing list