Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/task/DataAllocate.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 | 1b018a00cd17 |
comparison
equal
deleted
inserted
replaced
987:5eb651827ae3 | 988:0b6f8c82625a |
---|---|
8 | 8 |
9 static int | 9 static int |
10 run(SchedTask *s, void *rbuf, void *wbuf) | 10 run(SchedTask *s, void *rbuf, void *wbuf) |
11 { | 11 { |
12 | 12 |
13 int count = (int)s->get_input(rbuf, 0); | 13 int count = (int)s->get_param(0); |
14 for(int i=0;i<count;i++) { | 14 for(int i=0;i<count;i++) { |
15 void *idata = s->get_input(rbuf, i); | 15 void *idata = s->get_input(rbuf, i); |
16 long size = (long)s->get_param(i*2+1); | 16 long size = (long)s->get_param(i*2+1); |
17 long load_id = (long)s->get_param(i*2+2); | 17 long load_id = (long)s->get_param(i*2+2); |
18 | 18 |