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_validate.c | |
parent | 74fe189b2e1d8f661a1678e65d21da788b3b4435 (diff) |
gallium: add draw_stage::destroy().
Diffstat (limited to 'src/mesa/pipe/draw/draw_validate.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_validate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_validate.c b/src/mesa/pipe/draw/draw_validate.c index 4e8f986b27..8ce4a926e2 100644 --- a/src/mesa/pipe/draw/draw_validate.c +++ b/src/mesa/pipe/draw/draw_validate.c @@ -110,6 +110,10 @@ static void validate_begin( struct draw_stage *stage ) } +static void validate_destroy( struct draw_stage *stage ) +{ + FREE( stage ); +} /** @@ -127,6 +131,7 @@ struct draw_stage *draw_validate_stage( struct draw_context *draw ) stage->tri = NULL; stage->end = NULL; stage->reset_stipple_counter = NULL; + stage->destroy = validate_destroy; return stage; } |