summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-01-08 09:42:17 +0100
committerMarek Olšák <[email protected]>2011-01-08 09:42:17 +0100
commit7c16a77b0009382e4fa1f2a5e5ee2ad333bc7e78 (patch)
treee42efbf5fae31c0a38909e4d4f440739720a6c59 /src/gallium/drivers/r300/r300_blit.c
parent1f0348c4a2ba4f8ca812a2daccf3b01c3f984ef1 (diff)
r300g: fix a surface leak when flushing ZMASK
Diffstat (limited to 'src/gallium/drivers/r300/r300_blit.c')
-rw-r--r--src/gallium/drivers/r300/r300_blit.c1
1 files changed, 1 insertions, 0 deletions
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. */