From: Brian Date: Wed, 10 Oct 2007 21:05:24 +0000 (-0600) Subject: free/unreference pipe_surface in get_texel() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b68104b90b1d136b5f67a196c6cbdf9fe4dbfe1;p=mesa.git free/unreference pipe_surface in get_texel() --- 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 { /*