mirror of https://github.com/godotengine/godot
fix: crash in scenes with more than 8 shadowed directional lights
This commit is contained in:
parent
b9437c3938
commit
34ebec3748
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue