diff options
author | Yevhenii Kolesnikov <[email protected]> | 2019-08-01 16:05:29 +0300 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-08-07 17:25:22 +0000 |
commit | 0325860e90f928b7022edfe2d0355cbf0c496463 (patch) | |
tree | 511cfe74f45464c4eb7be65b02739fa8e1deb857 /src/mesa/state_tracker | |
parent | 4f767ded6effc60f7542089f368614f3d51bbba5 (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/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_xformfb.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index e591c58d2b7..476eb9be02b 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -96,12 +96,7 @@ st_delete_transform_feedback(struct gl_context *ctx, pipe_so_target_reference(&sobj->targets[i], NULL); } - for (i = 0; i < ARRAY_SIZE(sobj->base.Buffers); i++) { - _mesa_reference_buffer_object(ctx, &sobj->base.Buffers[i], NULL); - } - - free(obj->Label); - free(obj); + _mesa_delete_transform_feedback_object(ctx, obj); } |