Mercurial > hg > Game > Cerium
changeset 2045:24113f4fa9b5 draft
Fix AllocateSegment
ball_bound.app
author | innparusu |
---|---|
date | Thu, 26 Mar 2015 18:36:07 +0900 |
parents | 66aa91f6f4df |
children | 476fc75a5e17 |
files | Renderer/Engine/task/AllocateSegment.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/task/AllocateSegment.cc Wed Mar 25 19:13:56 2015 +0900 +++ b/Renderer/Engine/task/AllocateSegment.cc Thu Mar 26 18:36:07 2015 +0900 @@ -7,7 +7,7 @@ #include "polygon_pack.h" #include "SpanPack.h" -SchedDefineTask(AllocateSegment); +SchedDefineTask1(AllocateSegment, allocateSegment); /** * 各種 MemorySegment の用意はここでするのか? @@ -17,7 +17,7 @@ */ static int -run(SchedTask *smanager, void *rbuf , void *wbuf) +allocateSegment(SchedTask *smanager, void *rbuf , void *wbuf) { /* @@ -33,15 +33,15 @@ */ MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE); - smanager->global_set(/*GLOBAL_TILE_LIST*/16384, (void *)ml); + smanager->global_set(GLOBAL_TILE_LIST, (void *)ml); #ifdef USE_SEGMENT ml = smanager->createMemList(sizeof(PolygonPack), POLYGONPACK_SEGMENT_NUM); - smanager->global_set(/*GLOBAL_POLYGONPACK_LIST*/34848, (void *)ml); + smanager->global_set(GLOBAL_POLYGONPACK_LIST, (void *)ml); ml = smanager->createMemList(sizeof(SpanPack), SPANPACK_SEGMENT_NUM); - smanager->global_set(/*GLOBAL_SPANPACK_LIST*/20704, (void *)ml); + smanager->global_set(GLOBAL_SPANPACK_LIST, (void *)ml); #endif