use pipe_surface_reference() in sp_tile_cache_set_surface()
authorBrian <brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 22:00:11 +0000 (15:00 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 8 Nov 2007 22:00:11 +0000 (15:00 -0700)
src/mesa/pipe/softpipe/sp_tile_cache.c

index 9542ec3765970f8f966bb97920a037d316be1d41..19c06323e1f072ebfc8b35da7356830cec23610f 100644 (file)
@@ -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);
 }