summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorMathias Fröhlich <Mathias.Froehlich@web.de>2012-02-29 18:19:33 +0100
committerMathias Fröhlich <Mathias.Froehlich@gmx.net>2012-02-29 20:36:44 +0100
commit619baeae3ca5b9f993d1c6ddd9c4c0541e5a4f11 (patch)
tree659d0d11c681fa984a468b3ffa475534c2094695 /src/mesa/main/light.c
parent6b48d7e83d4ed09ae8db0da2f8a100d68d6e5e66 (diff)
downloadexternal_mesa3d-619baeae3ca5b9f993d1c6ddd9c4c0541e5a4f11.zip
external_mesa3d-619baeae3ca5b9f993d1c6ddd9c4c0541e5a4f11.tar.gz
external_mesa3d-619baeae3ca5b9f993d1c6ddd9c4c0541e5a4f11.tar.bz2
mesa: Remove gl_light_attrib::_Flags.
This variable is only used locally in _mesa_update_lighting. Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 552efa7..7ebf9bf 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1003,23 +1003,23 @@ _mesa_validate_all_lighting_tables( struct gl_context *ctx )
void
_mesa_update_lighting( struct gl_context *ctx )
{
+ GLbitfield flags = 0;
struct gl_light *light;
ctx->Light._NeedEyeCoords = GL_FALSE;
- ctx->Light._Flags = 0;
if (!ctx->Light.Enabled)
return;
foreach(light, &ctx->Light.EnabledList) {
- ctx->Light._Flags |= light->_Flags;
+ flags |= light->_Flags;
}
ctx->Light._NeedVertices =
- ((ctx->Light._Flags & (LIGHT_POSITIONAL|LIGHT_SPOT)) ||
+ ((flags & (LIGHT_POSITIONAL|LIGHT_SPOT)) ||
ctx->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR ||
ctx->Light.Model.LocalViewer);
- ctx->Light._NeedEyeCoords = ((ctx->Light._Flags & LIGHT_POSITIONAL) ||
+ ctx->Light._NeedEyeCoords = ((flags & LIGHT_POSITIONAL) ||
ctx->Light.Model.LocalViewer);
/* XXX: This test is overkill & needs to be fixed both for software and