summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pstipple.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-22 09:42:59 -0600
committerBrian <[email protected]>2008-03-22 09:42:59 -0600
commitdae7993afc56be1e71e600af60e01e51eab17eda (patch)
tree342cab2ce9efad08840a2edec6a931bb7950cae4 /src/gallium/auxiliary/draw/draw_pstipple.c
parent2f8f6c2918e721f6525b2124cde053b84beecafe (diff)
gallium: free samplers, textures in destroy()
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pstipple.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pstipple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pstipple.c b/src/gallium/auxiliary/draw/draw_pstipple.c
index 9d154a68381..bd8d3a76ae5 100644
--- a/src/gallium/auxiliary/draw/draw_pstipple.c
+++ b/src/gallium/auxiliary/draw/draw_pstipple.c
@@ -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 );
}