From: michal Date: Fri, 26 Oct 2007 16:20:11 +0000 (+0100) Subject: Call quad stage destructors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3755840e005dd11db0a51effa420672ac4f119d4;p=mesa.git Call quad stage destructors. --- diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c index 58ef744f304..999047889a8 100644 --- a/src/mesa/pipe/softpipe/sp_context.c +++ b/src/mesa/pipe/softpipe/sp_context.c @@ -215,6 +215,18 @@ static void softpipe_destroy( struct pipe_context *pipe ) draw_destroy( softpipe->draw ); + softpipe->quad.polygon_stipple->destroy( softpipe->quad.polygon_stipple ); + softpipe->quad.shade->destroy( softpipe->quad.shade ); + softpipe->quad.alpha_test->destroy( softpipe->quad.alpha_test ); + softpipe->quad.depth_test->destroy( softpipe->quad.depth_test ); + softpipe->quad.stencil_test->destroy( softpipe->quad.stencil_test ); + softpipe->quad.occlusion->destroy( softpipe->quad.occlusion ); + softpipe->quad.coverage->destroy( softpipe->quad.coverage ); + softpipe->quad.bufloop->destroy( softpipe->quad.bufloop ); + softpipe->quad.blend->destroy( softpipe->quad.blend ); + softpipe->quad.colormask->destroy( softpipe->quad.colormask ); + softpipe->quad.output->destroy( softpipe->quad.output ); + free( softpipe ); }