mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
iris: don't leak sampler state table resources
This commit is contained in:
parent
8e186cef2c
commit
7d504f3d52
1 changed files with 3 additions and 0 deletions
|
|
@ -2763,6 +2763,9 @@ iris_destroy_state(struct iris_context *ice)
|
|||
}
|
||||
pipe_surface_reference(&ice->state.framebuffer.zsbuf, NULL);
|
||||
|
||||
for (int stage = 0; stage < MESA_SHADER_STAGES; stage++) {
|
||||
pipe_resource_reference(&ice->state.sampler_table_resource[stage], NULL);
|
||||
}
|
||||
free(ice->state.cso_vp);
|
||||
free(ice->state.cso_depthbuffer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue