diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-07-24 17:39:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-07-24 17:40:30 +0300 |
commit | f23fecf3061a63d24815a63a378a636832a40ccd (patch) | |
tree | 86b8309cf39afc4746ea71de3e52e0b61f415db6 /intern/cycles/kernel/geom | |
parent | f283aa61c5a5f7b0ff9869dc32519806237f8965 (diff) |
Fix use of uninitialized variable in recent SSS fix.
Diffstat (limited to 'intern/cycles/kernel/geom')
-rw-r--r-- | intern/cycles/kernel/geom/geom_triangle_intersect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/geom/geom_triangle_intersect.h b/intern/cycles/kernel/geom/geom_triangle_intersect.h index 720ee6a1f5c..caa6c9d9a5b 100644 --- a/intern/cycles/kernel/geom/geom_triangle_intersect.h +++ b/intern/cycles/kernel/geom/geom_triangle_intersect.h @@ -256,7 +256,7 @@ ccl_device_inline void triangle_intersect_subsurface( const float inv_det = 1.0f / det; const float t = T * inv_det; - for(int i = min(max_hits, ss_isect->num_hits); i >= 0; --i) { + for(int i = min(max_hits, ss_isect->num_hits) - 1; i >= 0; --i) { if(ss_isect->hits[i].t == t) { return; } |