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 0b0be02..27a2a3e 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);
 }