Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/viewer.cc @ 989:0b8f9d4d7dab akira
ppack initialization fix
author | root@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 01 Oct 2010 04:40:14 +0900 |
parents | 0b6f8c82625a |
children | 33616b2789de c79651141045 |
comparison
equal
deleted
inserted
replaced
988:0b6f8c82625a | 989:0b8f9d4d7dab |
---|---|
154 HTaskPtr task_next; | 154 HTaskPtr task_next; |
155 HTaskPtr task_tex; | 155 HTaskPtr task_tex; |
156 | 156 |
157 for(int i=0;i<2;i++) { | 157 for(int i=0;i<2;i++) { |
158 r[i].ppack = (PolygonPack*)manager->allocate(sizeof(PolygonPack)); | 158 r[i].ppack = (PolygonPack*)manager->allocate(sizeof(PolygonPack)); |
159 r[i].ppack->next = 0; | |
159 | 160 |
160 r[i].spackList_length = (this->height + split_screen_h - 1) / split_screen_h; | 161 r[i].spackList_length = (this->height + split_screen_h - 1) / split_screen_h; |
161 r[i].spackList = (SpanPack*)manager->allocate(sizeof(SpanPack)*r[i].spackList_length); | 162 r[i].spackList = (SpanPack*)manager->allocate(sizeof(SpanPack)*r[i].spackList_length); |
162 // printf("spackList %0lx height %d\n",(unsigned long)r[i].spackList, this->height); | 163 // printf("spackList %0lx height %d\n",(unsigned long)r[i].spackList, this->height); |
163 | 164 |