Mercurial > hg > Game > Cerium
changeset 1138:8e494f602e45 draft
minor fix
author | Yutaka_Kinjyo |
---|---|
date | Thu, 17 Feb 2011 10:59:14 +0900 |
parents | 068c1af8c7a9 |
children | 67927f3a6655 |
files | Renderer/Engine/viewer.cc |
diffstat | 1 files changed, 36 insertions(+), 35 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc Thu Feb 17 10:55:53 2011 +0900 +++ b/Renderer/Engine/viewer.cc Thu Feb 17 10:59:14 2011 +0900 @@ -480,42 +480,43 @@ printf("texture_info addr %d\n",t->texture_info->texture_id); if (t->next != NULL) { - - for (int i = 0; i < t->pp_num; i++) { - HTaskPtr create_pp = manager->create_task(CreatePolygonFromSceneGraph); - - create_pp->add_inData(&t->pp[i], sizeof(PolygonPack)); - create_pp->add_inData(t->matrix, sizeof(float)*16); - create_pp->add_inData(t->real_matrix, sizeof(float)*16); - create_pp->add_inData(t->texture_info, sizeof(texture_list)); - - if ( (unsigned long)t->matrix % 16) { - printf("marix not aligned\n"); - } - - if ((unsigned long)t->real_matrix % 16) { - printf("real_matrix not aligned\n"); - } + + for (int i = 0; i < t->pp_num; i++) { + HTaskPtr create_pp = manager->create_task(CreatePolygonFromSceneGraph); + + create_pp->add_inData(&t->pp[i], sizeof(PolygonPack)); + create_pp->add_inData(t->matrix, sizeof(float)*16); + create_pp->add_inData(t->real_matrix, sizeof(float)*16); + create_pp->add_inData(t->texture_info, sizeof(texture_list)); + + if ( (unsigned long)t->matrix % 16) { + printf("marix not aligned\n"); + } + + if ((unsigned long)t->real_matrix % 16) { + printf("real_matrix not aligned\n"); + } + + if ((unsigned long)t->texture_info % 16) { + printf("texture_info not aligned\n"); + } + + create_pp->add_outData(out_pp, sizeof(PolygonPack)); + + if (game_task_array != NULL) { + create_pp->wait_for(game_task_array); + } - if ((unsigned long)t->texture_info % 16) { - printf("texture_info not aligned\n"); - } - - create_pp->add_outData(out_pp, sizeof(PolygonPack)); - - if (game_task_array != NULL) { - create_pp->wait_for(game_task_array); - } - - PolygonPackPtr tmp_pp = (PolygonPackPtr)manager->allocate(sizeof(PolygonPack)); - tmp_pp->init(); - create_pp->set_param(0, (memaddr)tmp_pp); - out_pp = tmp_pp; - - create_pp->set_cpu(SPE_ANY); - task_next->wait_for(create_pp); - create_pp->spawn(); - } + PolygonPackPtr tmp_pp = (PolygonPackPtr)manager->allocate(sizeof(PolygonPack)); + tmp_pp->init(); + create_pp->set_param(0, (memaddr)tmp_pp); + out_pp = tmp_pp; + + create_pp->set_cpu(SPE_ANY); + task_next->wait_for(create_pp); + create_pp->spawn(); + } + } } }