From 6961769cb23c8b9ed2fb56d8ce6e649848412357 Mon Sep 17 00:00:00 2001 From: michal Date: Fri, 26 Oct 2007 17:25:09 +0100 Subject: Define destroy method called by softpipe's destructor. --- src/mesa/pipe/softpipe/sp_quad_fs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/pipe/softpipe/sp_quad_fs.c') diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c index 9b9504cd15..dc8d6e0e23 100644 --- a/src/mesa/pipe/softpipe/sp_quad_fs.c +++ b/src/mesa/pipe/softpipe/sp_quad_fs.c @@ -190,6 +190,12 @@ static void shade_begin(struct quad_stage *qs) } +static void shade_destroy(struct quad_stage *qs) +{ + free( qs ); +} + + struct quad_stage *sp_quad_shade_stage( struct softpipe_context *softpipe ) { struct quad_shade_stage *qss = CALLOC_STRUCT(quad_shade_stage); @@ -204,6 +210,7 @@ struct quad_stage *sp_quad_shade_stage( struct softpipe_context *softpipe ) qss->stage.softpipe = softpipe; qss->stage.begin = shade_begin; qss->stage.run = shade_quad; + qss->stage.destroy = shade_destroy; /* set TGSI sampler state that's constant */ for (i = 0; i < PIPE_MAX_SAMPLERS; i++) { -- cgit v1.2.3