changeset 856:413d9cddc798

fix
author Yutaka_Kinjyo
date Thu, 10 Jun 2010 17:22:15 +0900
parents e2af25174a05
children f7276b509710
files Renderer/Engine/spe/DrawSpan.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/spe/DrawSpan.cc	Thu Jun 10 17:18:55 2010 +0900
+++ b/Renderer/Engine/spe/DrawSpan.cc	Thu Jun 10 17:22:15 2010 +0900
@@ -228,7 +228,7 @@
     int *light_sysswitch = (int*)smanager->global_get(LightSysSwitch);
     //smanager->printf("sys %d\n",light_sysswitch);
 
-    if ( *light_sysswitch == 1) {
+    if ( *light_sysswitch == 1 && flag) {
         color = infinity_light_calc(color,normal_x,normal_y,normal_z,
 				    smanager,localx,localy,zpos,
 				    world_x,world_y,world_z);