mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
gallium: free samplers, textures in destroy()
This commit is contained in:
parent
2f8f6c2918
commit
dae7993afc
2 changed files with 13 additions and 0 deletions
|
|
@ -665,7 +665,14 @@ aaline_reset_stipple_counter(struct draw_stage *stage)
|
|||
static void
|
||||
aaline_destroy(struct draw_stage *stage)
|
||||
{
|
||||
struct aaline_stage *aaline = aaline_stage(stage);
|
||||
|
||||
aaline->pipe->delete_sampler_state(aaline->pipe, aaline->sampler_cso);
|
||||
|
||||
pipe_texture_release(&aaline->texture);
|
||||
|
||||
draw_free_temp_verts( stage );
|
||||
|
||||
FREE( stage );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -534,6 +534,12 @@ pstip_reset_stipple_counter(struct draw_stage *stage)
|
|||
static void
|
||||
pstip_destroy(struct draw_stage *stage)
|
||||
{
|
||||
struct pstip_stage *pstip = pstip_stage(stage);
|
||||
|
||||
pstip->pipe->delete_sampler_state(pstip->pipe, pstip->sampler_cso);
|
||||
|
||||
pipe_texture_release(&pstip->texture);
|
||||
|
||||
draw_free_temp_verts( stage );
|
||||
FREE( stage );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue