From 1ff939f3f7d5cba72fddc5cc0b4a1bcf936bd64d Mon Sep 17 00:00:00 2001 From: Patrick Mours Date: Mon, 26 Aug 2019 15:55:39 +0200 Subject: Cleanup: avoid unnecessary primitive type lookup and variable initialization Ref D5363 --- intern/cycles/kernel/kernel_emission.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'intern/cycles/kernel/kernel_emission.h') diff --git a/intern/cycles/kernel/kernel_emission.h b/intern/cycles/kernel/kernel_emission.h index 9761dbfcc6d..459280cf433 100644 --- a/intern/cycles/kernel/kernel_emission.h +++ b/intern/cycles/kernel/kernel_emission.h @@ -242,8 +242,6 @@ ccl_device_noinline_cpu bool indirect_lamp_emission(KernelGlobals *kg, { bool hit_lamp = false; - *emission = make_float3(0.0f, 0.0f, 0.0f); - for (int lamp = 0; lamp < kernel_data.integrator.num_all_lights; lamp++) { LightSample ls ccl_optional_struct_init; -- cgit v1.2.3