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:
committed by
Brian Paul
parent
aa4001b607
commit
d08ac826c5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user