mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 17:00:22 +01:00
mesa: make sure all lighting tables are updated before the computation
Make sure all lighting tables are updated before using the table to calculate something, say using _SpotExpTable to calculate _VP_inf_spot_attenuation. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
d4df6318a1
commit
099c4e372d
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue