mesa: Implement KHR_debug ObjectLabel functions
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 28 Aug 2013 05:11:15 +0000 (15:11 +1000)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Sep 2013 13:47:49 +0000 (07:47 -0600)
commit262b5ff667ed8320bb7ec48288e6b08b4a27d991
tree7675afcfd9d51cfca2bcd1a832fd6c572c0f87ac
parent21b5bf712b47e03d21dfa2c93acb272b9b575fe7
mesa: Implement KHR_debug ObjectLabel functions

V3: make sure to add null terminator when setting label,
generate error when the client specifies an explicit
length that exceeds MAX_LABEL_LENGTH, set label pointer
to NULL when freed, and output correct length in
MAX_LABEL_LENGTH error message.

V2: fixed indentation of comment

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/objectlabel.c [new file with mode: 0644]
src/mesa/main/objectlabel.h [new file with mode: 0644]