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:
authorPatrick Mours <pmours@nvidia.com>2019-08-26 16:55:39 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-26 17:07:01 +0300
commit1ff939f3f7d5cba72fddc5cc0b4a1bcf936bd64d (patch)
tree823411c19d40e4b7bc892c7b725b0c448c428ca7 /intern/cycles/kernel/kernel_emission.h
parent6055db084d32e945bf5fbc6bdaf9b24507495737 (diff)
Cleanup: avoid unnecessary primitive type lookup and variable initialization
Ref D5363
Diffstat (limited to 'intern/cycles/kernel/kernel_emission.h')
-rw-r--r--intern/cycles/kernel/kernel_emission.h2
1 files changed, 0 insertions, 2 deletions
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;