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 4caf2dd..19f7188 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);