1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

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;
}