summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2009-12-08 13:11:09 +0000
committerAlan Hourihane <alanh@vmware.com>2009-12-08 13:12:02 +0000
commit2aebc5e01fbab6046f80c881d30717f788a390bc (patch)
tree7ea86bcf31bbb1c2d66247547b4f30365456e9e1
parenteaa3a025da18a0b7f25460f86bb4afcd08017dfe (diff)
move assert to avoid crash in debug build.
-rw-r--r--src/gallium/drivers/llvmpipe/lp_tile_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_tile_cache.c b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
index e83210f93bc..7a1ecf5107b 100644
--- a/src/gallium/drivers/llvmpipe/lp_tile_cache.c
+++ b/src/gallium/drivers/llvmpipe/lp_tile_cache.c
@@ -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 */