diff options
author | michal <michal@michal-laptop.(none)> | 2007-10-26 17:25:09 +0100 |
---|---|---|
committer | michal <michal@michal-laptop.(none)> | 2007-10-27 19:01:11 +0100 |
commit | 6961769cb23c8b9ed2fb56d8ce6e649848412357 (patch) | |
tree | 1944b5907079b103f227c9eed4107963701e7598 /src/mesa/pipe/softpipe/sp_quad_occlusion.c | |
parent | dee9406e4847f98b346f0fff72d16df46e9584a4 (diff) |
Define destroy method called by softpipe's destructor.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_occlusion.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_occlusion.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_occlusion.c b/src/mesa/pipe/softpipe/sp_quad_occlusion.c index 4f178f0557..18a36e8286 100644 --- a/src/mesa/pipe/softpipe/sp_quad_occlusion.c +++ b/src/mesa/pipe/softpipe/sp_quad_occlusion.c @@ -64,6 +64,11 @@ static void occlusion_begin(struct quad_stage *qs) } +static void occlusion_destroy(struct quad_stage *qs)
+{
+ free( qs );
+} + struct quad_stage *sp_quad_occlusion_stage( struct softpipe_context *softpipe ) { @@ -72,6 +77,7 @@ struct quad_stage *sp_quad_occlusion_stage( struct softpipe_context *softpipe ) stage->softpipe = softpipe; stage->begin = occlusion_begin; stage->run = occlusion_count_quad; + stage->destroy = occlusion_destroy; return stage; } |