1
0
Fork 0

fix: crash in scenes with more than 8 shadowed directional lights

This commit is contained in:
Alex Threlfo 2024-12-15 19:13:07 +11:00
parent b9437c3938
commit 34ebec3748
1 changed files with 1 additions and 1 deletions

View File

@ -3283,7 +3283,7 @@ void RendererSceneCull::_render_scene(const RendererSceneRender::CameraData *p_c
continue;
}
if (directional_lights.size() > RendererSceneRender::MAX_DIRECTIONAL_LIGHTS) {
if (directional_lights.size() >= RendererSceneRender::MAX_DIRECTIONAL_LIGHTS) {
break;
}