Mercurial > hg > Game > Cerium
changeset 1844:23e84bb83ed2 draft
clear flag in GpuScheduler
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 20 Dec 2013 22:09:24 +0900 |
parents | bf4867621732 |
children | ad05aeed3a98 |
files | TaskManager/Gpu/GpuScheduler.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Gpu/GpuScheduler.cc Fri Dec 20 21:03:38 2013 +0900 +++ b/TaskManager/Gpu/GpuScheduler.cc Fri Dec 20 22:09:24 2013 +0900 @@ -220,6 +220,8 @@ */ if (tasklist->self) { flag[cur] = tasklist->self->flag; + } else { + memset(&flag[cur], 0, sizeof(HTask::htask_flag)); } for (TaskPtr nextTask = tasklist->tasks; nextTask < tasklist->last(); nextTask = nextTask->next()) { if(nextTask->command==ShowTime) {