Fix: EEVEE-Next: Shadow: Avoid uninitialized grid_shift

This value was previously used for tagging as dirty.
This is not the case anymore so no reason to not
set it.
This commit is contained in:
Clément Foucault
2024-05-21 20:19:56 +02:00
parent 8dcf6f43bf
commit 01308713ff

View File

@@ -39,10 +39,7 @@ void ShadowTileMap::sync_orthographic(const float4x4 &object_mat_,
light_type = eLightType::LIGHT_SUN;
is_area_side = false;
if (grid_shift == int2(0)) {
/* Only replace shift if it is not already dirty. */
grid_shift = origin_offset - grid_offset;
}
grid_shift = origin_offset - grid_offset;
grid_offset = origin_offset;
if (!equals_m4m4(object_mat.ptr(), object_mat_.ptr())) {