diff options
| author | Tilman Sauerbeck <tilman@code-monkey.de> | 2010-09-27 08:32:50 +0200 | 
|---|---|---|
| committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2010-09-27 08:37:12 +0200 | 
| commit | 4c6344f569c5417b0ea804f6f8216a2b40321480 (patch) | |
| tree | 7bf82ed04e0bba47f8b1b9610a3722ef82e85ee5 /src | |
| parent | 7eab5ef425e1e08c0dc0ea8d161c33610a91586f (diff) | |
r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/gallium/drivers/r600/r600_blit.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index 52326534e6..357776c55e 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -200,6 +200,9 @@ int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_te  	util_blitter_custom_depth_stencil(rctx->blitter, zsurf, cbsurf, rctx->custom_dsa_flush, depth); +	pipe_surface_reference(&zsurf, NULL); +	pipe_surface_reference(&cbsurf, NULL); +  	/* resume queries */  	r600_queries_resume(ctx);  	return 0; | 
