From 71e3aa14fb09616a9b06cd6fd01fcabf3853cacd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 18 Mar 2009 09:55:00 -0600 Subject: [PATCH] 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. --- src/gallium/drivers/softpipe/sp_tile_cache.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2