[Mesa-dev] [PATCH 2/5] st/mesa: use _mesa_delete_buffer_object
Nicolai Hähnle
nhaehnle at gmail.com
Tue Jan 5 18:53:37 PST 2016
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
This is more future-proof than the current code.
---
src/mesa/state_tracker/st_cb_bufferobjects.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 5d20b26..c75f476 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);
}
--
2.5.0
More information about the mesa-dev
mailing list