summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-03-21 15:36:24 -0700
committerEric Anholt <[email protected]>2014-03-24 11:15:04 -0700
commite07e7e9f8990cd3dcdc9056bcf81f71d2b947af5 (patch)
treebcf7ef2b8334f16544dd7dbd643c1baa66a463c1 /src/mesa
parent41033509f2fc714442a222b46068ade4380f9b08 (diff)
i965: Don't forget to free the old singlesample_mt.
Fixes a memory leak with MSAA winsys buffers since my move of singlesample_mt to the rb in 4e0924c5de5f3964e4ca81f923d877dbb59fad0a Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index d4f7c600755..e013de49b04 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -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.