summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/crocus/crocus_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index 170f207c28b..8506aaced06 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -8227,6 +8227,8 @@ crocus_destroy_state(struct crocus_context *ice)
}
}
+ for (int i = 0; i < 16; i++)
+ pipe_resource_reference(&ice->state.vertex_buffers[i].buffer.resource, NULL);
pipe_resource_reference(&ice->state.grid_size.res, NULL);
pipe_resource_reference(&ice->state.index_buffer.res, NULL);