mesa: Change save_attrib_data() to return boolean

Change save_attrib_data() to return true/false depending on success.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Juha-Pekka Heikkila 2013-12-16 07:04:00 -07:00 committed by Brian Paul
parent aa4001b607
commit d08ac826c5

View file

@ -182,7 +182,7 @@ struct texture_state
* Allocate new attribute node of given type/kind. Attach payload data.
* Insert it into the linked list named by 'head'.
*/
static void
static bool
save_attrib_data(struct gl_attrib_node **head,
GLbitfield kind, void *payload)
{
@ -196,7 +196,9 @@ save_attrib_data(struct gl_attrib_node **head,
}
else {
/* out of memory! */
return false;
}
return true;
}