diff TaskManager/Test/test_render/spe/CreateSpan.cpp @ 147:3ecf43bd1a35

fix
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Tue, 02 Dec 2008 15:47:25 +0900
parents 2284efc89f63
children 9642aeef298d
line wrap: on
line diff
--- a/TaskManager/Test/test_render/spe/CreateSpan.cpp	Tue Dec 02 14:12:01 2008 +0900
+++ b/TaskManager/Test/test_render/spe/CreateSpan.cpp	Tue Dec 02 15:47:25 2008 +0900
@@ -126,6 +126,7 @@
 	while (cur_x < span->length_x) {
 	    if (cur_x + MAX_TILE_LIST < span->length_x) {
 		len = MAX_TILE_LIST;
+		smanager->mainMem_alloc(TILE_ALLOCATE, sizeof(TileInfoList));
 	    } else {
 		len = span->length_x - cur_x;
 	    }
@@ -155,7 +156,6 @@
 
 		send_tilelist_addr = tilelist_addr;
 
-		smanager->mainMem_alloc(TILE_ALLOCATE, sizeof(TileInfoList));
 		smanager->mainMem_wait();
 		tilelist_addr =
 		    (TileInfoListPtr)smanager->mainMem_get(TILE_ALLOCATE);
@@ -392,7 +392,7 @@
 	// TilePtr の計算
 	// tix, tiy (Tile 内での x, y)
 	//
-	smanager->mainMem_wait();
+	//smanager->mainMem_wait();
 	setTile(span);
     }
 }