From 3abf746a7eae52220485cd031aecec2ca9e6103e Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 23 Jan 2004 14:46:27 +0000 Subject: Don't set extra bits in FLUSH_VERTICES, fix several state bugs. --- src/mesa/main/light.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/mesa/main/light.c') diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index 44feeb507e..94060592bb 100644 --- a/src/mesa/main/light.c +++ b/src/mesa/main/light.c @@ -409,14 +409,6 @@ _mesa_LightModelfv( GLenum pname, const GLfloat *params ) return; FLUSH_VERTICES(ctx, _NEW_LIGHT); ctx->Light.Model.ColorControl = newenum; - - if ((ctx->Light.Enabled && - ctx->Light.Model.ColorControl==GL_SEPARATE_SPECULAR_COLOR) - || ctx->Fog.ColorSumEnabled) - ctx->_TriangleCaps |= DD_SEPARATE_SPECULAR; - else - ctx->_TriangleCaps &= ~DD_SEPARATE_SPECULAR; - break; default: _mesa_error( ctx, GL_INVALID_ENUM, "glLightModel(pname=0x%x)", pname ); -- cgit v1.2.3