i965: Don't forget to free the old singlesample_mt.
authorEric Anholt <eric@anholt.net>
Fri, 21 Mar 2014 22:36:24 +0000 (15:36 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 24 Mar 2014 18:15:04 +0000 (11:15 -0700)
Fixes a memory leak with MSAA winsys buffers since my move of
singlesample_mt to the rb in 4e0924c5de5f3964e4ca81f923d877dbb59fad0a

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index d4f7c600755def1986269ba90c29cd1f499c9a32..e013de49b04714e8de70c1ef47265641cd0dc952 100644 (file)
@@ -682,6 +682,7 @@ intel_update_winsys_renderbuffer_miptree(struct brw_context *intel,
    int num_samples = rb->NumSamples;
 
    intel_miptree_release(&irb->mt);
+   intel_miptree_release(&irb->singlesample_mt);
 
    /* Only the front and back buffers, which are color buffers, are allocated
     * through the image loader.