summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-01-05 21:49:11 -0500
committerNicolai Hähnle <[email protected]>2016-01-07 17:06:58 -0500
commit1c2187b1c225b2f7e1891544d184bde60390977e (patch)
tree40a45ff21f669f4470c63523431aa2821a061d13 /src/mesa/state_tracker
parent6aed083b9304cd718ee5bc7839a6222b982d3e3b (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]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c4
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);
}