Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/viewer.cpp @ 130:8a33f4859ed8
テクスチャの大きさを128x128以外にも使えるように。(若干バグ有り)
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 17:19:43 +0900 |
parents | 776eca0daa02 |
children | 435e0d24db39 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/viewer.cpp Tue Nov 25 15:53:26 2008 +0900 +++ b/TaskManager/Test/test_render/viewer.cpp Tue Nov 25 17:19:43 2008 +0900 @@ -121,6 +121,8 @@ task_next->wait_for(task_sgp); task_sgp->spawn(); + int tex_width = polygon->texture_image->w; + int tex_height = polygon->texture_image->h; int tex_blocksize = tex_width*tex_height*4; __texture = (void*)manager->malloc(tex_blocksize);