From 3adb42e217d29033e0637ae334790aa1d742d194 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 23 Dec 2016 08:47:16 -0300 Subject: Fixed many more bugs reported by Valgrind --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 728997e794..8dec34a4cd 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2760,7 +2760,7 @@ Viewport::Viewport() { shadow_atlas_size=0; for(int i=0;i<4;i++) { - shadow_atlas_quadrant_subdiv[0]=SHADOW_ATLAS_QUADRANT_SUBDIV_MAX; + shadow_atlas_quadrant_subdiv[i]=SHADOW_ATLAS_QUADRANT_SUBDIV_MAX; } set_shadow_atlas_quadrant_subdiv(0,SHADOW_ATLAS_QUADRANT_SUBDIV_4); set_shadow_atlas_quadrant_subdiv(1,SHADOW_ATLAS_QUADRANT_SUBDIV_4); -- cgit v1.2.3