Fix #34833: crash using SSS node on windows, invalid memory access when building lookup table.

This commit is contained in:
Brecht Van Lommel 2013-04-02 13:34:50 +00:00
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--;