summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_blitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_blitter.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_blitter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_blitter.c b/src/gallium/drivers/ilo/ilo_blitter.c
index 10335920364..d08563da436 100644
--- a/src/gallium/drivers/ilo/ilo_blitter.c
+++ b/src/gallium/drivers/ilo/ilo_blitter.c
@@ -70,5 +70,10 @@ ilo_blitter_destroy(struct ilo_blitter *blitter)
if (blitter->pipe_blitter)
util_blitter_destroy(blitter->pipe_blitter);
+ if (blitter->buffer.res) {
+ struct pipe_screen *screen = blitter->ilo->base.screen;
+ screen->resource_destroy(screen, blitter->buffer.res);
+ }
+
FREE(blitter);
}