From cbbcb0247e6aa8d7adc274a94206ee02f9c70bea Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 17 Apr 2013 11:58:33 -0600 Subject: mesa: remove DD_TRI_LIGHT_TWOSIDE flag v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt --- src/mesa/main/enable.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/mesa/main/enable.c') diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 22a75c8c5d1..fb2a1964fdd 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -419,10 +419,6 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) return; FLUSH_VERTICES(ctx, _NEW_LIGHT); ctx->Light.Enabled = state; - if (ctx->Light.Enabled && ctx->Light.Model.TwoSide) - ctx->_TriangleCaps |= DD_TRI_LIGHT_TWOSIDE; - else - ctx->_TriangleCaps &= ~DD_TRI_LIGHT_TWOSIDE; break; case GL_LINE_SMOOTH: if (!_mesa_is_desktop_gl(ctx) && ctx->API != API_OPENGLES) -- cgit v1.2.3