diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-12-23 08:47:16 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-12-23 08:47:16 -0300 |
commit | 3adb42e217d29033e0637ae334790aa1d742d194 (patch) | |
tree | d3e626459ce9158483b5b84ff9fb5207a4d6f12a /scene | |
parent | 6b35211c53f14e5c9ea00b4e8382f497a11240c8 (diff) |
Fixed many more bugs reported by Valgrind
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |