Call quad stage destructors.
authormichal <michal@michal-laptop.(none)>
Fri, 26 Oct 2007 16:20:11 +0000 (17:20 +0100)
committermichal <michal@michal-laptop.(none)>
Sat, 27 Oct 2007 18:01:11 +0000 (19:01 +0100)
src/mesa/pipe/softpipe/sp_context.c

index 58ef744f304dfc96b98668123971d709a4f9b000..999047889a80bebc4c283323c96cd388fd23a8d7 100644 (file)
@@ -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 );\r
+   softpipe->quad.shade->destroy( softpipe->quad.shade );\r
+   softpipe->quad.alpha_test->destroy( softpipe->quad.alpha_test );\r
+   softpipe->quad.depth_test->destroy( softpipe->quad.depth_test );\r
+   softpipe->quad.stencil_test->destroy( softpipe->quad.stencil_test );\r
+   softpipe->quad.occlusion->destroy( softpipe->quad.occlusion );\r
+   softpipe->quad.coverage->destroy( softpipe->quad.coverage );\r
+   softpipe->quad.bufloop->destroy( softpipe->quad.bufloop );\r
+   softpipe->quad.blend->destroy( softpipe->quad.blend );\r
+   softpipe->quad.colormask->destroy( softpipe->quad.colormask );\r
+   softpipe->quad.output->destroy( softpipe->quad.output );
+
    free( softpipe );
 }