summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-01-23 14:46:27 +0000
committerKeith Whitwell <[email protected]>2004-01-23 14:46:27 +0000
commit3abf746a7eae52220485cd031aecec2ca9e6103e (patch)
treec5b0f5e9e1751cb18043824027b2e0c2b06b1b03 /src/mesa/main/light.c
parent5c161cf615a073a9a69916957babdd234eba2174 (diff)
Don't set extra bits in FLUSH_VERTICES, fix several state bugs.
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 44feeb507e9..94060592bbc 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 );