Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/viewer.cc @ 988:0b6f8c82625a akira
fix for double buffer
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 02 Oct 2010 03:48:39 +0900 |
parents | ac437c3cf766 |
children | 0b8f9d4d7dab |
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc Sat Oct 02 03:19:33 2010 +0900 +++ b/Renderer/Engine/viewer.cc Sat Oct 02 03:48:39 2010 +0900 @@ -115,12 +115,12 @@ for(int i = 0; i < spe_num; i++) { HTaskPtr data_load = manager->create_task(DataAllocate); data_load->set_param(0,(memaddr)3); // num of allocate block - data_load->set_param(0,(memaddr)(sizeof(float)*4*light_num)); // 1st allocate size - data_load->set_param(1,(memaddr)Light); // 1st id - data_load->set_param(0,(memaddr)(light_num * sizeof(int))); // 2nd size - data_load->set_param(1,(memaddr)LightSwitch); // 2nd id - data_load->set_param(0,(memaddr)16); // 3rd size - data_load->set_param(1,(memaddr)LightSysSwitch); // 3rd id + data_load->set_param(1,(memaddr)(sizeof(float)*4*light_num)); // 1st allocate size + data_load->set_param(2,(memaddr)Light); // 1st id + data_load->set_param(3,(memaddr)(light_num * sizeof(int))); // 2nd size + data_load->set_param(4,(memaddr)LightSwitch); // 2nd id + data_load->set_param(5,(memaddr)16); // 3rd size + data_load->set_param(6,(memaddr)LightSysSwitch); // 3rd id data_load->set_cpu((CPU_TYPE)((int)SPE_0 + i)); data_load->spawn(); } @@ -176,11 +176,11 @@ r[i].spackList_ptr = (SpanPack**)manager->allocate(sizeof(SpanPack*)*r[i].spackList_length_align); - for (int j = 0; i < r[i].spackList_length; i++) { + for (int j = 0; j < r[i].spackList_length; j++) { r[i].spackList_ptr[j] = &r[i].spackList[j]; } - for (int j = 1; j <= r[i].spackList_length; i++) { + for (int j = 1; j <= r[i].spackList_length; j++) { r[i].spackList[j-1].init(j*split_screen_h); } }