diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-28 00:25:50 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-28 02:41:00 +0400 |
commit | de6b64bca65e340315b5eb3e5f766749efd0404e (patch) | |
tree | eeb47ae3b15a2e739916181b78c62f7d914f8dba /intern/cycles/kernel | |
parent | d81f492d08e68660902faf99ae2d6e19216ea3d8 (diff) |
Fix use of uninitialized variable in some cases with scatter + emission volume.
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r-- | intern/cycles/kernel/kernel_volume.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_volume.h b/intern/cycles/kernel/kernel_volume.h index ec0c3114213..778ab4e600a 100644 --- a/intern/cycles/kernel/kernel_volume.h +++ b/intern/cycles/kernel/kernel_volume.h @@ -257,7 +257,7 @@ ccl_device VolumeIntegrateResult kernel_volume_integrate_homogeneous(KernelGloba if(xi < sample_transmittance) { /* no scattering */ - float3 transmittance = volume_color_attenuation(sigma_t, t); + transmittance = volume_color_attenuation(sigma_t, t); float pdf = (transmittance.x + transmittance.y + transmittance.z); new_tp = *throughput * transmittance * (3.0f / pdf); } |