diff options
author | Brian Paul <[email protected]> | 2009-03-18 09:55:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-03-18 10:24:19 -0600 |
commit | 71e3aa14fb09616a9b06cd6fd01fcabf3853cacd (patch) | |
tree | 2d06d95da5c404537fb38be2efb3613a3c2f3b77 | |
parent | 3151f5d75ac26d4460b6905ecad0a8ac0470e419 (diff) |
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.
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tile_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |