From a7be1c5ac25fe86c4b217625976af1eb37e48a25 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 8 Nov 2007 15:00:11 -0700 Subject: [PATCH] use pipe_surface_reference() in sp_tile_cache_set_surface() --- src/mesa/pipe/softpipe/sp_tile_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2