diff options
author | Michal <michal@tungstengraphics.com> | 2007-11-23 11:30:51 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2007-12-09 14:03:34 +0000 |
commit | d75454840672f462de933724daae24a839aac48e (patch) | |
tree | 71242b6abbea53ca4753bd8900d582a1e6ebfa36 /src/mesa/pipe/draw/draw_wide_prims.c | |
parent | 74fe189b2e1d8f661a1678e65d21da788b3b4435 (diff) |
gallium: add draw_stage::destroy().
Diffstat (limited to 'src/mesa/pipe/draw/draw_wide_prims.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_wide_prims.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_wide_prims.c b/src/mesa/pipe/draw/draw_wide_prims.c index 494a2bc619..a56c9b8893 100644 --- a/src/mesa/pipe/draw/draw_wide_prims.c +++ b/src/mesa/pipe/draw/draw_wide_prims.c @@ -315,7 +315,6 @@ static void wide_begin( struct draw_stage *stage ) } - static void wide_end( struct draw_stage *stage ) { stage->next->end( stage->next ); @@ -327,6 +326,14 @@ static void draw_reset_stipple_counter( struct draw_stage *stage ) stage->next->reset_stipple_counter( stage->next ); } + +static void wide_destroy( struct draw_stage *stage ) +{ + draw_free_tmps( stage ); + FREE( stage ); +} + + struct draw_stage *draw_wide_stage( struct draw_context *draw ) { struct wide_stage *wide = CALLOC_STRUCT(wide_stage); @@ -341,6 +348,7 @@ struct draw_stage *draw_wide_stage( struct draw_context *draw ) wide->stage.tri = passthrough_tri; wide->stage.end = wide_end; wide->stage.reset_stipple_counter = draw_reset_stipple_counter; + wide->stage.destroy = wide_destroy; return &wide->stage; } |