mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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:
parent
aa4001b607
commit
d08ac826c5
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue