From: Marek Olšák Date: Sat, 8 Jan 2011 08:42:17 +0000 (+0100) Subject: r300g: fix a surface leak when flushing ZMASK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c16a77b0009382e4fa1f2a5e5ee2ad333bc7e78;p=mesa.git r300g: fix a surface leak when flushing ZMASK --- diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 6e886433bc5..017db48485b 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -326,6 +326,7 @@ void r300_flush_depth_stencil(struct pipe_context *pipe, r300->z_decomp_rd = FALSE; tex->zmask_in_use[level] = FALSE; + pipe_surface_reference(&dstsurf, NULL); } /* Copy a block of pixels from one surface to another using HW. */