Mercurial > hg > Game > Cerium
changeset 913:564096e53d8a draft
set_game_task fix.
author | tkaito |
---|---|
date | Tue, 20 Jul 2010 17:31:05 +0900 |
parents | 141e532dd135 |
children | 6286b3baf744 |
files | Renderer/Engine/SceneGraphRoot.cc Renderer/Engine/viewer.cc |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc Tue Jul 20 05:08:49 2010 +0900 +++ b/Renderer/Engine/SceneGraphRoot.cc Tue Jul 20 17:31:05 2010 +0900 @@ -717,7 +717,8 @@ void *e = node->propertyptr; int move = node->move_id; PostFunction post_func = node->post_func; - sgroot->set_game_task(move, (void*)e, size, post_func); + SceneGraphRoot *sgroottmp = (SceneGraphRoot*)sgroot_; + sgroottmp->set_game_task(move, (void*)e, size, post_func); } void
--- a/Renderer/Engine/viewer.cc Tue Jul 20 05:08:49 2010 +0900 +++ b/Renderer/Engine/viewer.cc Tue Jul 20 17:31:05 2010 +0900 @@ -177,7 +177,7 @@ spackList_length = (this->height + split_screen_h - 1) / split_screen_h; spackList = (SpanPack*)manager->allocate(sizeof(SpanPack)*spackList_length); -printf("spackList %0x height %d\n",(unsigned int)spackList, this->height); + printf("spackList %0x height %d\n",(unsigned long)spackList, this->height); /** * SPU に送る address list は 16 バイト倍数でないといけない。