changeset 1088:560d18ef3077 draft

debug texture width and height initialize
author Yutaka_Kinjyo
date Mon, 20 Dec 2010 22:09:24 +0900
parents 20f09564c586
children c0dc96c6f209
files Renderer/Engine/spe/CreateSpan.cc Renderer/Engine/task/CreateSpan.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/spe/CreateSpan.cc	Fri Dec 17 18:34:29 2010 +0900
+++ b/Renderer/Engine/spe/CreateSpan.cc	Mon Dec 20 22:09:24 2010 +0900
@@ -384,6 +384,9 @@
 
 	float tex_x_len = span->tex_x2 - span->tex_x1;
 
+	span->tex_width = tex_info->width;
+	span->tex_height = tex_info->height;
+
 	/**
 	 * tex_x_len, tex_y_len を掛ける理由は
 	 * Changelog の 2008-12-16 を参照
--- a/Renderer/Engine/task/CreateSpan.cc	Fri Dec 17 18:34:29 2010 +0900
+++ b/Renderer/Engine/task/CreateSpan.cc	Mon Dec 20 22:09:24 2010 +0900
@@ -391,6 +391,9 @@
 
 	float tex_x_len = span->tex_x2 - span->tex_x1;
 
+	span->tex_width = tex_info->width;
+	span->tex_height = tex_info->height;
+
 	/**
 	 * tex_x_len, tex_y_len を掛ける理由は
 	 * Changelog の 2008-12-16 を参照