i965: Free gen6 state BOs on context destroy.
authorEric Anholt <eric@anholt.net>
Fri, 4 Dec 2009 02:52:35 +0000 (18:52 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 25 Feb 2010 18:53:07 +0000 (10:53 -0800)
src/mesa/drivers/dri/i965/brw_vtbl.c

index 0b0be02dd20ff2205f909500faf81c41ec8badd0..27a2a3e8a7e9e20de5be0f5383b6bc1bbc702fe1 100644 (file)
@@ -102,6 +102,9 @@ static void brw_destroy_context( struct intel_context *intel )
    dri_bo_release(&brw->cc.prog_bo);
    dri_bo_release(&brw->cc.state_bo);
    dri_bo_release(&brw->cc.vp_bo);
+   dri_bo_release(&brw->cc.blend_state_bo);
+   dri_bo_release(&brw->cc.depth_stencil_state_bo);
+   dri_bo_release(&brw->cc.color_calc_state_bo);
 }