move assert to avoid crash in debug build.
authorAlan Hourihane <alanh@vmware.com>
Tue, 8 Dec 2009 13:11:09 +0000 (13:11 +0000)
committerAlan Hourihane <alanh@vmware.com>
Tue, 8 Dec 2009 13:12:02 +0000 (13:12 +0000)
src/gallium/drivers/llvmpipe/lp_tile_cache.c

index e83210f93bc32acdfb70d2884d04b93b7ad9aaf4..7a1ecf5107b218e8844876ef3a9c85fa961c55bc 100644 (file)
@@ -290,11 +290,12 @@ lp_get_cached_tile(struct llvmpipe_tile_cache *tc,
    
    assert(tc->surface);
    assert(tc->transfer);
-   assert(tc->transfer_map);
 
    if(!tc->transfer_map)
       lp_tile_cache_map_transfers(tc);
 
+   assert(tc->transfer_map);
+
    switch(tile->status) {
    case LP_TILE_STATUS_CLEAR:
       /* don't get tile from framebuffer, just clear it */