Fix issue with missing emission in non-progressive integrator.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 13 Jun 2012 17:34:47 +0000 (17:34 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 13 Jun 2012 17:34:47 +0000 (17:34 +0000)
intern/cycles/kernel/kernel_path.h

index 80d66532506c08490ec124749dbddaf26b245fad..2da6a7e4d8ffd57677820e618cfaf2896c714762 100644 (file)
@@ -850,7 +850,7 @@ __device float4 kernel_path_non_progressive(KernelGlobals *kg, RNG *rng, int sam
 #endif
 
                                kernel_path_indirect(kg, rng, sample*num_samples, ray, buffer,
-                                       tp*num_samples_inv, min_ray_pdf, ray_pdf, ps, rng_offset+PRNG_BOUNCE_NUM, &L);
+                                       tp*num_samples_inv, min_ray_pdf, bsdf_pdf, ps, rng_offset+PRNG_BOUNCE_NUM, &L);
                        }
                }