diff options
Diffstat (limited to 'servers/visual')
-rw-r--r-- | servers/visual/visual_server_scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp index 62b3a23788..162647e420 100644 --- a/servers/visual/visual_server_scene.cpp +++ b/servers/visual/visual_server_scene.cpp @@ -2060,7 +2060,7 @@ void VisualServerScene::_render_scene(const Transform p_cam_transform,const Came // directional lights { - Instance** lights_with_shadow = (Instance**)alloca(sizeof(Instance*)*light_cull_count); + Instance** lights_with_shadow = (Instance**)alloca(sizeof(Instance*)*scenario->directional_lights.size()); int directional_shadow_count=0; for (List<Instance*>::Element *E=scenario->directional_lights.front();E;E=E->next()) { |