diff TaskManager/Test/simple_render/viewer.cpp @ 73:811ffebd8deb

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 03:34:35 +0900
parents 475e04db46c0
children 5da437ae84db
line wrap: on
line diff
--- a/TaskManager/Test/simple_render/viewer.cpp	Mon Feb 18 02:13:56 2008 +0900
+++ b/TaskManager/Test/simple_render/viewer.cpp	Mon Feb 18 03:34:35 2008 +0900
@@ -32,7 +32,7 @@
 	exit( 1 );
     }
 
-#ifndef DEBUG
+#ifdef _DEBUG
     screen = SDL_SetVideoMode( width, height, bpp, SDL_HWSURFACE);
     if (screen == NULL) {
 	fprintf(stderr, "Couldn't set GL mode: %s\n", SDL_GetError());
@@ -299,6 +299,7 @@
     graph_line();
 
     fd_update_sgp = manager->open("UpdateSGP");
+    fd_update_sgp = 1;
     fd_create_pp  = manager->open("CreatePP");
     fd = manager->open("ViewerRunDraw");
     task_update_sgp = manager->create_task(fd_update_sgp,
@@ -319,7 +320,7 @@
     task_create_pp->spawn();
     task->spawn();
 
-    sgp_buff->swap_buffer();
+    //sgp_buff->swap_buffer();
 }
 
 void
@@ -332,7 +333,7 @@
 
     pp_buff->get_buffer(&pp);
 
-    polygon->draw(pp);    // test draw of PolygonPack
+    //polygon->draw(pp);    // test draw of PolygonPack
     SDL_BlitSurface(bitmap, NULL, screen, NULL);
     SDL_UpdateRect(screen, 0, 0, 0, 0);    
 
@@ -340,7 +341,6 @@
 
     fd = manager->open("ViewerRunLoop");
     task = manager->create_task(fd, 0, 0, 0, NULL);
-    //manager->spawn_task(task);
     task->spawn();
 }