diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-12 12:21:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 12:21:01 +0100 |
commit | 13c50e8aa569bf5fa01a7dc052cde8cdf1886c99 (patch) | |
tree | 85bac7eb1bfbc1ad867ce550b5e5b121644835ca /scene/resources/environment.cpp | |
parent | e40395669cf277e948e1a520a6584ce0deafd91a (diff) | |
parent | d308eb091a6c6d73442a118d7069e855ec2b1c6d (diff) | |
download | redot-engine-13c50e8aa569bf5fa01a7dc052cde8cdf1886c99.tar.gz |
Merge pull request #25481 from hpvb/fix-ubsan-asan-reports
Fix many asan and ubsan reported issues
Diffstat (limited to 'scene/resources/environment.cpp')
-rw-r--r-- | scene/resources/environment.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 3c295267dc..17609ed505 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -1291,7 +1291,14 @@ void Environment::_bind_methods() { BIND_ENUM_CONSTANT(SSAO_QUALITY_HIGH); } -Environment::Environment() { +Environment::Environment() : + bg_mode(BG_CLEAR_COLOR), + tone_mapper(TONE_MAPPER_LINEAR), + ssao_blur(SSAO_BLUR_DISABLED), + ssao_quality(SSAO_QUALITY_LOW), + glow_blend_mode(GLOW_BLEND_MODE_ADDITIVE), + dof_blur_far_quality(DOF_BLUR_QUALITY_LOW), + dof_blur_near_quality(DOF_BLUR_QUALITY_LOW) { environment = VS::get_singleton()->environment_create(); |