free/unreference pipe_surface in get_texel()
authorBrian <brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 21:05:24 +0000 (15:05 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 21:05:24 +0000 (15:05 -0600)
src/mesa/pipe/softpipe/sp_tex_sample.c

index 0c990294f28f8b9e220c0fc3616724ac739749a4..b89adf84805b017af3d9c407961cdcf24bec109c 100644 (file)
@@ -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 {
       /*