diff Renderer/Engine/viewer.cc @ 1157:ea68d54411a7 draft

not yet
author Yutaka_Kinjyo
date Mon, 25 Apr 2011 21:55:41 +0900
parents 1ede991d6da3
children 42f5958ab74e
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc	Wed Apr 20 16:31:11 2011 +0900
+++ b/Renderer/Engine/viewer.cc	Mon Apr 25 21:55:41 2011 +0900
@@ -599,12 +599,11 @@
 #ifdef USE_TASKARRAY
 
 	// mem_flag は spe 側で黒い部分を 0 で埋めるフラグ
-	if(spack->info.size > 0 || mem_flag == 1) {
 
-	  int array_task_num = (this->width + split_screen_w - 1) / split_screen_w;
-	  HTaskPtr task_draw_array = manager->create_task_array(DrawSpan, array_task_num, 6, 1, rangey);
-	  Task *task_draw = 0;
-	  
+        int array_task_num = (this->width + split_screen_w - 1) / split_screen_w;
+        HTaskPtr task_draw_array = manager->create_task_array(DrawSpan, array_task_num, 6, 1, rangey);
+        Task *task_draw = 0;
+        
 	  while (startx < this->width) {
 	    
 	    // Draw SpanPack
@@ -641,17 +640,6 @@
 	  task_next->wait_for(task_draw_array);
 #endif
 	  task_draw_array->spawn();
-
-	  
-	 
-        } else {
-
-	  memset(&pixels[(startx-1)+this->width*(starty-1)],
-		 0, (this->width)*sizeof(int)*rangey);
-
-	}
-	  
-
 #else
 
        HTaskPtr task_draw;