# HG changeset patch # User gongo@charles.cr.ie.u-ryukyu.ac.jp # Date 1228211888 -32400 # Node ID f85ad3769897019c14a981d00e6c5d647d6c79b2 # Parent 74341c8bf9358a3afed8782b48f350ebc68bfbe8 SceneGraph.cpp での texture_list fix diff -r 74341c8bf935 -r f85ad3769897 TaskManager/Test/test_render/Makefile.def --- a/TaskManager/Test/test_render/Makefile.def Tue Dec 02 18:49:04 2008 +0900 +++ b/TaskManager/Test/test_render/Makefile.def Tue Dec 02 18:58:08 2008 +0900 @@ -11,7 +11,7 @@ #CERIUM = ../../.. CC = g++ -CFLAGS = -O0 -g -Wall# -DDEBUG +CFLAGS = -O9 -g -Wall# -DDEBUG INCLUDE = -I$(CERIUM)/include/TaskManager -I. LIBS = -L$(CERIUM)/TaskManager diff -r 74341c8bf935 -r f85ad3769897 TaskManager/Test/test_render/SceneGraph.cpp --- a/TaskManager/Test/test_render/SceneGraph.cpp Tue Dec 02 18:49:04 2008 +0900 +++ b/TaskManager/Test/test_render/SceneGraph.cpp Tue Dec 02 18:58:08 2008 +0900 @@ -323,10 +323,6 @@ texture_image = converted; } - list[id_count-1].t_w = texture_image->w; - list[id_count-1].t_h = texture_image->h; - list[id_count-1].pixels = (Uint32*)texture_image->pixels; - uint32 *tex_dest = (uint32*)manager->malloc(texture_image->w*texture_image->h*4); { @@ -346,12 +342,17 @@ } } + list[id_count-1].t_w = texture_image->w; + list[id_count-1].t_h = texture_image->h; + list[id_count-1].pixels_orig = (Uint32*)texture_image->pixels; + list[id_count-1].pixels = tex_dest; + texture_id = id_count-1; texture_info.t_w = texture_image->w; texture_info.t_h = texture_image->h; texture_info.pixels_orig = (Uint32*)texture_image->pixels; texture_info.pixels = tex_dest; - printf("%p\n", tex_dest); + printf("%d %d\n", texture_image->w, texture_image->h); //load_texture(image_name); if(unlink(image_name)) { diff -r 74341c8bf935 -r f85ad3769897 TaskManager/Test/test_render/spe/Makefile --- a/TaskManager/Test/test_render/spe/Makefile Tue Dec 02 18:49:04 2008 +0900 +++ b/TaskManager/Test/test_render/spe/Makefile Tue Dec 02 18:58:08 2008 +0900 @@ -8,7 +8,7 @@ OBJS = $(SRCS:.cpp=.o) CC = spu-g++ -CFLAGS = -O0 -g -fno-exceptions -fno-rtti #-DDEBUG +CFLAGS = -O9 -g -fno-exceptions -fno-rtti #-DDEBUG INCLUDE = -I$(CERIUM)/include/TaskManager -I. -I.. LIBS = -L$(CERIUM)/TaskManager -lspemanager