You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user