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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user