aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorYevhenii Kolesnikov <[email protected]>2019-08-01 16:05:29 +0300
committerEric Anholt <[email protected]>2019-08-07 17:25:22 +0000
commit0325860e90f928b7022edfe2d0355cbf0c496463 (patch)
tree511cfe74f45464c4eb7be65b02739fa8e1deb857 /src/mesa/drivers
parent4f767ded6effc60f7542089f368614f3d51bbba5 (diff)
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 <[email protected]> CC: Kenneth Graunke <[email protected]> Signed-off-by: Yevhenii Kolesnikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_sol.c7
1 files changed, 1 insertions, 6 deletions
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);
}
/**