From 5e121c8eab23d3d42745277f9c92617cb0aeb066 Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Fri, 18 Jan 2019 15:16:11 +0100 Subject: Cycles: Fixed uninitialized memory Cryptomatte on CPU with accurate mode was hitting uninitialized variables. This is now explicitly initializing them to NULL. --- intern/cycles/device/device_cpu.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern') 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 -- cgit v1.2.3