diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-05 21:49:11 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-01-07 17:06:58 -0500 |
commit | 1c2187b1c225b2f7e1891544d184bde60390977e (patch) | |
tree | 40a45ff21f669f4470c63523431aa2821a061d13 | |
parent | 6aed083b9304cd718ee5bc7839a6222b982d3e3b (diff) |
st/mesa: use _mesa_delete_buffer_object
This is more future-proof than the current code.
Reviewed-by: Marek Olšák <[email protected]>
Cc: "11.0 11.1" <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_cb_bufferobjects.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 5d20b26d26e..c75f4765b94 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -83,9 +83,7 @@ st_bufferobj_free(struct gl_context *ctx, struct gl_buffer_object *obj) if (st_obj->buffer) pipe_resource_reference(&st_obj->buffer, NULL); - mtx_destroy(&st_obj->Base.Mutex); - free(st_obj->Base.Label); - free(st_obj); + _mesa_delete_buffer_object(ctx, obj); } |