forked from bartvdbraak/blender
Cycles: Fix use of uninitialized variable in SSS
When ray hits curve segment with SSS shader it was possible to have uninitialized hit_P variable used for sampling. Seems that was a reason of our headache of difference between AVX2 and SSE4 render results here, so now we can revert all the nasty ifdef-ed inline policies.
This commit is contained in:
parent
edd9d89673
commit
cc95172667
@ -330,6 +330,10 @@ int subsurface_scatter_multi_intersect(
|
||||
verts);
|
||||
}
|
||||
#endif /* __OBJECT_MOTION__ */
|
||||
else {
|
||||
ss_isect->weight[hit] = make_float3(0.0f, 0.0f, 0.0f);
|
||||
continue;
|
||||
}
|
||||
|
||||
float3 hit_Ng = ss_isect->Ng[hit];
|
||||
if(ss_isect->hits[hit].object != OBJECT_NONE) {
|
||||
|
Loading…
Reference in New Issue
Block a user