gallium: set tc->surface_map = NULL after unmapping

This commit is contained in:
Brian 2008-03-19 08:53:02 -06:00
parent e08501b457
commit 4b39ba7216

View file

@ -156,6 +156,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
if (tc->surface_map) {
/*assert(tc->surface != ps);*/
pipe_surface_unmap(tc->surface);
tc->surface_map = NULL;
}
pipe_surface_reference(&tc->surface, ps);