summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-08 15:00:11 -0700
committerBrian <[email protected]>2007-11-08 15:00:11 -0700
commita7be1c5ac25fe86c4b217625976af1eb37e48a25 (patch)
tree3edb061d35f77ec2c4959931be6ee675aa42f486 /src/mesa/pipe
parentc0b27149458c1c70b8664cdedb2be842229f4359 (diff)
use pipe_surface_reference() in sp_tile_cache_set_surface()
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/softpipe/sp_tile_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tile_cache.c b/src/mesa/pipe/softpipe/sp_tile_cache.c
index 9542ec37659..19c06323e1f 100644
--- a/src/mesa/pipe/softpipe/sp_tile_cache.c
+++ b/src/mesa/pipe/softpipe/sp_tile_cache.c
@@ -126,7 +126,7 @@ void
sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
struct pipe_surface *ps)
{
- tc->surface = ps;
+ pipe_surface_reference(&tc->surface, ps);
}