From 2448fc7deeaa870d879de17158f243f239c05b15 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 16 Feb 2001 00:35:34 +0000 Subject: Fixed conform problems with recent material tracking change. Remove redundant 'update_materials' stage. Fix conform segfault with seperate specular colors in mustpass.c. These tests still fail, however. --- src/mesa/swrast_setup/ss_context.c | 12 +++++++++++- src/mesa/swrast_setup/ss_vbtmp.h | 8 -------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'src/mesa/swrast_setup') diff --git a/src/mesa/swrast_setup/ss_context.c b/src/mesa/swrast_setup/ss_context.c index 83c7f45ffa..181be13f94 100644 --- a/src/mesa/swrast_setup/ss_context.c +++ b/src/mesa/swrast_setup/ss_context.c @@ -1,4 +1,4 @@ -/* $Id: ss_context.c,v 1.9 2001/01/29 20:47:39 keithw Exp $ */ +/* $Id: ss_context.c,v 1.10 2001/02/16 00:35:35 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -153,6 +153,16 @@ _swsetup_RenderStart( GLcontext *ctx ) VB->import_data( ctx, VB->importable_data, VEC_NOT_WRITEABLE|VEC_BAD_STRIDE); + + /* Ugly hack: Tie up some dangling pointers for flat/twoside code + * in ss_tritmp.h and ss_interptmp.h + */ + if ((ctx->_TriangleCaps & DD_SEPERATE_SPECULAR) == 0 || + ctx->Texture._ReallyEnabled == 0) { + VB->SecondaryColorPtr[0] = VB->ColorPtr[0]; + VB->SecondaryColorPtr[1] = VB->ColorPtr[1]; + } + } void diff --git a/src/mesa/swrast_setup/ss_vbtmp.h b/src/mesa/swrast_setup/ss_vbtmp.h index 6197f5bdb5..ab5417ffe5 100644 --- a/src/mesa/swrast_setup/ss_vbtmp.h +++ b/src/mesa/swrast_setup/ss_vbtmp.h @@ -78,14 +78,6 @@ static void TAG(rs)(GLcontext *ctx, GLuint start, GLuint end, GLuint newinputs ) } } - /* Tie up some dangling pointers for flat/twoside code in ss_tritmp.h - */ - if ((ctx->_TriangleCaps & DD_SEPERATE_SPECULAR) == 0) { - VB->SecondaryColorPtr[0] = VB->ColorPtr[0]; - VB->SecondaryColorPtr[1] = VB->ColorPtr[1]; - } - - proj = VB->ProjectedClipPtr->data; if (IND & FOG) fog = VB->FogCoordPtr->data; -- cgit v1.2.3