r300g: fix a surface leak when flushing ZMASK

This commit is contained in:
Marek Olšák
2011-01-08 09:42:17 +01:00
parent 1f0348c4a2
commit 7c16a77b00
+1
View File
@@ -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. */