Cycles: Don't check closure flag in kernel_volume_decoupled_scatter(), we check this before the function already.

This commit is contained in:
Thomas Dinges 2014-08-14 21:25:29 +02:00
parent da1801969b
commit 5bdea81319
1 changed files with 1 additions and 4 deletions

View File

@ -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 */