diff TaskManager/Test/test_render/viewer.cpp @ 130:40978d4b608a draft

テクスチャの大きさを128x128以外にも使えるように。(若干バグ有り)
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Tue, 25 Nov 2008 17:19:43 +0900
parents 95e2046eb46f
children 8f1419174cdf
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);