From 76ca0f5232682665a899841026c47f171c7ec05c Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 2 Aug 2001 22:39:51 +0000 Subject: Fix SGL testLights.exe bugs (interaction of copying and fixup in display lists) --- src/mesa/tnl/t_vb_lighttmp.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (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 f26f1df68b..22601db55f 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.15 2001/08/01 05:10:42 keithw Exp $ */ +/* $Id: t_vb_lighttmp.h,v 1.16 2001/08/02 22:39:51 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -588,6 +588,13 @@ static void TAG(light_fast_rgba_single)( GLcontext *ctx, do { GLfloat n_dot_VP = DOT3(normal, light->_VP_inf_norm); +/* if (j < 5) */ +/* fprintf(stderr, "light normal %d: %f %f %f\n", */ +/* j, */ +/* normal[0], */ +/* normal[1], */ +/* normal[2]); */ + if (n_dot_VP < 0.0F) { if (IDX & LIGHT_TWOSIDE) { GLfloat n_dot_h = -DOT3(normal, light->_h_inf_norm); @@ -628,6 +635,14 @@ static void TAG(light_fast_rgba_single)( GLcontext *ctx, COPY_CHAN4(Fcolor[j], Fcolor[j-1]); if (IDX & LIGHT_TWOSIDE) COPY_CHAN4(Bcolor[j], Bcolor[j-1]); + +/* if (j < 5) */ +/* fprintf(stderr, "skip normal %d: %f %f %f\n", */ +/* j, */ +/* normal[0], */ +/* normal[1], */ +/* normal[2]); */ + } } while (!CHECK_END_VB(j)); -- cgit v1.2.3