diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_shadows.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_shadows.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_shadows.c b/source/blender/draw/engines/eevee/eevee_shadows.c index d0e430e115f..8c50b26b45f 100644 --- a/source/blender/draw/engines/eevee/eevee_shadows.c +++ b/source/blender/draw/engines/eevee/eevee_shadows.c @@ -260,10 +260,8 @@ void EEVEE_shadows_update(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) } if (!sldata->shadow_cube_pool) { - /* TODO shadowcube array. */ - int cube_size = linfo->shadow_cube_size + ((true) ? 2 : 0); - sldata->shadow_cube_pool = DRW_texture_create_2d_array(cube_size, - cube_size, + sldata->shadow_cube_pool = DRW_texture_create_2d_array(linfo->shadow_cube_size, + linfo->shadow_cube_size, max_ii(1, linfo->num_cube_layer * 6), shadow_pool_format, DRW_TEX_FILTER | DRW_TEX_COMPARE, |