From a96308c37db0bc0086a017d318bc3504aa5f0b1a Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 30 Oct 2000 13:31:59 +0000 Subject: Replace the flags Mesa was using for ctx->NewState with a new set based on the GL attribute groups. Introduced constants describing the circumstances under which some key derived values can change: _SWRAST_NEW_RASTERMASK -- ctx->RasterMask _SWRAST_NEW_TRIANGLE -- The software rasterizer's triangle function _DD_NEW_FEEDBACK -- the 'DD_FEEDBACK' bit in ctx->TriangleCaps These are helpful in deciding whether you need to recalculate state if your recalculation involves reference to a derived value. --- src/mesa/main/accum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/accum.c') diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index 315efe932b6..a2c8d048804 100644 --- a/src/mesa/main/accum.c +++ b/src/mesa/main/accum.c @@ -1,4 +1,4 @@ -/* $Id: accum.c,v 1.29 2000/10/29 18:23:16 brianp Exp $ */ +/* $Id: accum.c,v 1.30 2000/10/30 13:31:59 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -107,6 +107,7 @@ _mesa_ClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha ) ctx->Accum.ClearColor[1] = CLAMP( green, -1.0, 1.0 ); ctx->Accum.ClearColor[2] = CLAMP( blue, -1.0, 1.0 ); ctx->Accum.ClearColor[3] = CLAMP( alpha, -1.0, 1.0 ); + ctx->NewState |= _NEW_ACCUM; } -- cgit v1.2.3