From 8b68104b90b1d136b5f67a196c6cbdf9fe4dbfe1 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 10 Oct 2007 15:05:24 -0600 Subject: free/unreference pipe_surface in get_texel() --- src/mesa/pipe/softpipe/sp_tex_sample.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/pipe/softpipe') diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 0c990294f28..b89adf84805 100644 --- a/src/mesa/pipe/softpipe/sp_tex_sample.c +++ b/src/mesa/pipe/softpipe/sp_tex_sample.c @@ -594,6 +594,8 @@ get_texel(struct tgsi_sampler *sampler, ty * TEX_CACHE_TILE_SIZE, TEX_CACHE_TILE_SIZE, TEX_CACHE_TILE_SIZE, (float *) sampler->cache[entry].data); + + pipe_surface_reference(&ps, NULL); } else { /* -- cgit v1.2.3