summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vb_lighttmp.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-08-02 22:39:51 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-08-02 22:39:51 +0000
commit76ca0f5232682665a899841026c47f171c7ec05c (patch)
tree0457ec7393a5c798b2f2f5542377ffb4fa48feba /src/mesa/tnl/t_vb_lighttmp.h
parent554ceab8ecc9805afb89cfa5975852fd57cad1e6 (diff)
Fix SGL testLights.exe bugs (interaction of copying and fixup in display lists)
Diffstat (limited to 'src/mesa/tnl/t_vb_lighttmp.h')
-rw-r--r--src/mesa/tnl/t_vb_lighttmp.h17
1 files changed, 16 insertions, 1 deletions
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));