summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index c27cf1dd38b..60daa89a33f 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1138,6 +1138,9 @@ compute_light_positions( struct gl_context *ctx )
TRANSFORM_NORMAL( ctx->_EyeZDir, eye_z, ctx->ModelviewMatrixStack.Top->m );
}
+ /* Make sure all the light tables are updated before the computation */
+ _mesa_validate_all_lighting_tables(ctx);
+
foreach (light, &ctx->Light.EnabledList) {
if (ctx->_NeedEyeCoords) {