gallium: set tc->surface_map = NULL after unmapping
authorBrian <brian.paul@tungstengraphics.com>
Wed, 19 Mar 2008 14:53:02 +0000 (08:53 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 19 Mar 2008 17:14:18 +0000 (11:14 -0600)
src/gallium/drivers/softpipe/sp_tile_cache.c

index 4caf2dd3fc97eff45d47bcf3a83f20781fb0bf37..19f71887e7e87f979e24043bf3e169d88b581a0b 100644 (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);