Mercurial > hg > Members > kono > Cerium
changeset 731:6222ef073236
fix SgChange.cc
author | aaa |
---|---|
date | Tue, 22 Dec 2009 18:16:21 +0900 |
parents | 4dc02d3e98bb |
children | 74aa6649dcb6 |
files | Renderer/Engine/SgChange.cc Renderer/Engine/viewer.cc |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/SgChange.cc Mon Dec 21 19:15:24 2009 +0900 +++ b/Renderer/Engine/SgChange.cc Tue Dec 22 18:16:21 2009 +0900 @@ -54,7 +54,7 @@ SgChange::mainLoop() { HTaskPtr task_next = initLoop(); - + task_next->set_post(&post2runLoop, (void *)this, 0); // set_post(function(this->run_loop()), NULL) task_next->spawn(); } @@ -83,6 +83,8 @@ void SgChange::run_loop(HTaskPtr task_next) { + viewer->dev->clear_screen(); + bool quit_flg; quit_flg = viewer->quit_check(); if (quit_flg == true) { @@ -91,7 +93,7 @@ return; } - viewer->clean_pixels(); + viewer->dev->clean_pixels(); for (int i = 1; i <= spackList_length; i++) { spackList[i-1].reinit(i*split_screen_h);