summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-10 15:05:24 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-10 15:05:24 -0600
commit8b68104b90b1d136b5f67a196c6cbdf9fe4dbfe1 (patch)
treecad756538900498d057be6ee8f87a95cff5ab5ab
parent2b31b413f97c73816a2845782aee9a49e22d2e0b (diff)
free/unreference pipe_surface in get_texel()
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_sample.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c
index 0c990294f2..b89adf8480 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 {
/*