fix: crash in scenes with more than 8 shadowed directional lights
This commit is contained in:
parent
b9437c3938
commit
34ebec3748
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue