From c618005dcff0d4011a77cfebd109880eb784d581 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 1 Aug 2001 05:10:42 +0000 Subject: Fix copying problem (light spots) on evaluated surfaces. --- src/mesa/tnl/t_vb_lighttmp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/tnl/t_vb_lighttmp.h') diff --git a/src/mesa/tnl/t_vb_lighttmp.h b/src/mesa/tnl/t_vb_lighttmp.h index ff3dead13e..f26f1df68b 100644 --- a/src/mesa/tnl/t_vb_lighttmp.h +++ b/src/mesa/tnl/t_vb_lighttmp.h @@ -1,4 +1,4 @@ -/* $Id: t_vb_lighttmp.h,v 1.14 2001/07/28 19:28:49 keithw Exp $ */ +/* $Id: t_vb_lighttmp.h,v 1.15 2001/08/01 05:10:42 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -117,7 +117,7 @@ static void TAG(light_rgba_spec)( GLcontext *ctx, -/* fprintf(stderr, "%s\n", __FUNCTION__ ); */ +/* fprintf(stderr, "%s\n", __FUNCTION__ ); */ spec[0] = Fspec; spec[1] = Bspec; @@ -588,7 +588,6 @@ static void TAG(light_fast_rgba_single)( GLcontext *ctx, do { GLfloat n_dot_VP = DOT3(normal, light->_VP_inf_norm); - if (n_dot_VP < 0.0F) { if (IDX & LIGHT_TWOSIDE) { GLfloat n_dot_h = -DOT3(normal, light->_h_inf_norm); @@ -699,6 +698,7 @@ static void TAG(light_fast_rgba)( GLcontext *ctx, ctx->Light.Material[1].Diffuse[3]); } + COPY_3V(sum[0], ctx->Light._BaseColor[0]); if (IDX & LIGHT_TWOSIDE) COPY_3V(sum[1], ctx->Light._BaseColor[1]); -- cgit v1.2.3