diff options
author | Juha-Pekka Heikkila <[email protected]> | 2013-12-16 07:04:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-18 09:06:52 -0700 |
commit | d08ac826c517f2a0a96c5e00d5c9bc4c223e6564 (patch) | |
tree | ca324674a5999e744e9274984e921601f73cd405 | |
parent | aa4001b6075a5ca0c695f196e912f09ea12aed44 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/main/attrib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 8a2a268b4dc..3ecf5339437 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -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; } |