diff options
author | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-01-18 17:16:11 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-01-18 17:17:21 +0300 |
commit | 5e121c8eab23d3d42745277f9c92617cb0aeb066 (patch) | |
tree | 3e221afb393e798cc2ec1168f17d00a0d923d202 /intern | |
parent | 547cb5e264eb1f6b03c7327e1acae6e4f2b0187a (diff) |
Cycles: Fixed uninitialized memory
Cryptomatte on CPU with accurate mode was hitting uninitialized variables.
This is now explicitly initializing them to NULL.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/device/device_cpu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp index 16908b0244a..a92c052a5df 100644 --- a/intern/cycles/device/device_cpu.cpp +++ b/intern/cycles/device/device_cpu.cpp @@ -924,6 +924,7 @@ protected: kg.decoupled_volume_steps[i] = NULL; } kg.decoupled_volume_steps_index = 0; + kg.coverage_asset = kg.coverage_object = kg.coverage_material = NULL; #ifdef WITH_OSL OSLShader::thread_init(&kg, &kernel_globals, &osl_globals); #endif |