Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Werner <stefan.werner@tangent-animation.com>2019-01-18 17:16:11 +0300
committerStefan Werner <stefan.werner@tangent-animation.com>2019-01-18 17:17:21 +0300
commit5e121c8eab23d3d42745277f9c92617cb0aeb066 (patch)
tree3e221afb393e798cc2ec1168f17d00a0d923d202 /intern/cycles
parent547cb5e264eb1f6b03c7327e1acae6e4f2b0187a (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/cycles')
-rw-r--r--intern/cycles/device/device_cpu.cpp1
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