Cycles: Don't check closure flag in kernel_volume_decoupled_scatter(), we check this before the function already.
This commit is contained in:
parent
da1801969b
commit
5bdea81319
|
@ -738,10 +738,7 @@ ccl_device VolumeIntegrateResult kernel_volume_decoupled_scatter(
|
|||
float3 *throughput, float rphase, float rscatter,
|
||||
const VolumeSegment *segment, const float3 *light_P, bool probalistic_scatter)
|
||||
{
|
||||
int closure_flag = segment->closure_flag;
|
||||
|
||||
if(!(closure_flag & SD_SCATTER))
|
||||
return VOLUME_PATH_MISSED;
|
||||
kernel_assert(segment->closure_flag & SD_SCATTER);
|
||||
|
||||
/* pick random color channel, we use the Veach one-sample
|
||||
* model with balance heuristic for the channels */
|
||||
|
|
Loading…
Reference in New Issue