summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-12-21 14:20:35 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-12-21 14:22:17 -0300
commit37f558cd7b2308f6442f74c5265f12425d9887c8 (patch)
tree88901b350f7674013f7aecf8fddf3f1c3dbd7399 /servers
parent72b844c34999d8615450798ed1f27ef24a72d8ce (diff)
Some BRDF fixes
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_scene.cpp2
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()) {