diff options
author | Brian <[email protected]> | 2008-03-22 09:42:59 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-22 09:42:59 -0600 |
commit | dae7993afc56be1e71e600af60e01e51eab17eda (patch) | |
tree | 342cab2ce9efad08840a2edec6a931bb7950cae4 /src/gallium/auxiliary/draw/draw_aaline.c | |
parent | 2f8f6c2918e721f6525b2124cde053b84beecafe (diff) |
gallium: free samplers, textures in destroy()
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_aaline.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_aaline.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_aaline.c b/src/gallium/auxiliary/draw/draw_aaline.c index b4fa6bd9670..6742f7f4b96 100644 --- a/src/gallium/auxiliary/draw/draw_aaline.c +++ b/src/gallium/auxiliary/draw/draw_aaline.c @@ -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 ); } |