forked from bartvdbraak/blender
Fix #34833: crash using SSS node on windows, invalid memory access when building lookup table.
This commit is contained in:
parent
00a1dca612
commit
5ac6e1ae84
@ -38,6 +38,8 @@ static float cdf_lookup_inverse(const vector<float>& table, float2 range, float
|
||||
|
||||
if(index == 0)
|
||||
return range[0];
|
||||
else if(index == table.size())
|
||||
return range[1];
|
||||
else
|
||||
index--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user