Skip to content

Commit

Permalink
Merge pull request #100423 from Namey5/directional-light-crash
Browse files Browse the repository at this point in the history
Fix crash in scenes with more than 8 shadowed directional lights
  • Loading branch information
Repiteo committed Dec 16, 2024
2 parents 3bc4936 + 34ebec3 commit ea351e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_scene_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ea351e4

Please sign in to comment.