Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/SceneGraph.cpp @ 149:6aead32217b7
SceneGraph.cpp での texture_list fix
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 02 Dec 2008 18:58:08 +0900 |
parents | 9642aeef298d |
children | bbf774c57544 |
line wrap: on
line diff
--- 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)) {