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.
This commit is contained in:
Brian Paul 2009-03-18 09:55:00 -06:00
parent 3151f5d75a
commit 71e3aa14fb

View file

@ -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;