aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_lighttmp.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-01-17 02:49:38 +0000
committerKeith Whitwell <[email protected]>2001-01-17 02:49:38 +0000
commitc0bcd2ca99609fe8b6e992e2277ef8612d46fdfe (patch)
tree3aa0c90e1f864323e35e51679aa5d69bf07a3c97 /src/mesa/tnl/t_vb_lighttmp.h
parent547bbcabffffad1a630c261830998c511efc2b96 (diff)
Fixes for performance bug on compiled array element paths.
Diffstat (limited to 'src/mesa/tnl/t_vb_lighttmp.h')
-rw-r--r--src/mesa/tnl/t_vb_lighttmp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_lighttmp.h b/src/mesa/tnl/t_vb_lighttmp.h
index 656fffff1ad..575c568c06f 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.2 2001/01/03 15:59:30 brianp Exp $ */
+/* $Id: t_vb_lighttmp.h,v 1.3 2001/01/17 02:49:39 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -661,6 +661,9 @@ static void TAG(light_fast_rgba)( GLcontext *ctx,
if (IDX & LIGHT_TWOSIDE)
VB->ColorPtr[1] = &store->LitColor[1];
+ if (stage->changed_inputs == 0)
+ return;
+
if ( CHECK_COLOR_MATERIAL(j) )
gl_update_color_material( ctx, *CMcolor );
@@ -783,6 +786,9 @@ static void TAG(light_ci)( GLcontext *ctx,
if (IDX & LIGHT_TWOSIDE)
VB->IndexPtr[1] = &store->LitIndex[1];
+ if (stage->changed_inputs == 0)
+ return;
+
indexResult[0] = VB->IndexPtr[0]->data;
indexResult[1] = VB->IndexPtr[1]->data;