From: Brian Paul Date: Wed, 18 Mar 2009 15:55:00 +0000 (-0600) Subject: softpipe: need to set tc->transfer=NULL after destroying the transfer object X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71e3aa14fb09616a9b06cd6fd01fcabf3853cacd;p=mesa.git softpipe: need to set tc->transfer=NULL after destroying the transfer object This fixes a number of crashes/regressions in programs such as lodbias.c, mipmap_limits.c, etc. --- diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c index 51e34d0d621..6db7930ec83 100644 --- a/src/gallium/drivers/softpipe/sp_tile_cache.c +++ b/src/gallium/drivers/softpipe/sp_tile_cache.c @@ -172,6 +172,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc, } screen->tex_transfer_destroy(tc->transfer); + tc->transfer = NULL; } tc->surface = ps;