From: Brian Date: Thu, 8 Nov 2007 22:00:11 +0000 (-0700) Subject: use pipe_surface_reference() in sp_tile_cache_set_surface() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7be1c5ac25fe86c4b217625976af1eb37e48a25;p=mesa.git use pipe_surface_reference() in sp_tile_cache_set_surface() --- 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); }