From 0325860e90f928b7022edfe2d0355cbf0c496463 Mon Sep 17 00:00:00 2001 From: Yevhenii Kolesnikov Date: Thu, 1 Aug 2019 16:05:29 +0300 Subject: mesa: Use _mesa_delete_transform_feedback_object in drivers Function _mesa_delete_transform_feedback_object called from within drivers once driver-specific clean-up has been done. Brings into conformity with how other GL objects are handled. CC: Eric Anholt CC: Kenneth Graunke Signed-off-by: Yevhenii Kolesnikov Reviewed-by: Eric Anholt Reviewed-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/gen6_sol.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/i965/gen6_sol.c b/src/mesa/drivers/dri/i965/gen6_sol.c index 1d5f26ab0c0..bda015e6cc5 100644 --- a/src/mesa/drivers/dri/i965/gen6_sol.c +++ b/src/mesa/drivers/dri/i965/gen6_sol.c @@ -211,15 +211,10 @@ brw_delete_transform_feedback(struct gl_context *ctx, struct brw_transform_feedback_object *brw_obj = (struct brw_transform_feedback_object *) obj; - for (unsigned i = 0; i < ARRAY_SIZE(obj->Buffers); i++) { - _mesa_reference_buffer_object(ctx, &obj->Buffers[i], NULL); - } - brw_bo_unreference(brw_obj->offset_bo); brw_bo_unreference(brw_obj->prim_count_bo); - free(obj->Label); - free(brw_obj); + _mesa_delete_transform_feedback_object(ctx, obj); } /** -- cgit v1.2.3