diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-01-10 21:37:26 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-01-10 21:37:26 +0400 |
commit | 057f0a63d456d6fcaee0811261d9b8240f2d0e09 (patch) | |
tree | 9ec88fc4b271ab9e8b5c070ad07007d8d1c80279 | |
parent | b39090bb5ab54a396128178923bf3caf543c3a33 (diff) |
Fix #33821: cycles background intensity fix had uninitialized memory usage
for area lights.
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index eafe1d3d96b..e0d0802ae84 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -302,7 +302,7 @@ __device void lamp_light_sample(KernelGlobals *kg, int lamp, invarea = 1.0f; } - ls->eval_fac = 0.25f*ls->pdf; + ls->eval_fac = 0.25f*invarea; ls->pdf = invarea; } |