Fix 3D sky update performance regression

This commit is contained in:
Hugo Locurcio 2022-02-10 20:21:28 +01:00
parent 38c851a3fa
commit 66d27df12f
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1172,7 +1172,7 @@ void RendererSceneSkyRD::setup(RendererSceneEnvironmentRD *p_env, RID p_render_b
}
}
// Check whether the directional_light_buffer changes
bool light_data_dirty = true;
bool light_data_dirty = false;
// Light buffer is dirty if we have fewer or more lights
// If we have fewer lights, make sure that old lights are disabled