commit 6f004ab27b1a3ae6f469fdadff62337f76579136
parent 700e1fd4306ce1b3c1c6af891a94bbf7f8cd2369
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 9 Apr 2019 10:00:59 +0200
Fix a possible issue on scene medium accessor
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sdis_scene_Xd.h b/src/sdis_scene_Xd.h
@@ -857,7 +857,7 @@ XD(scene_get_medium)
/* The hits of all targeted positions on the current primitive are on
* vertices. Challenge positions on another primitive. */
- if(istep > nsteps) continue;
+ if(istep >= nsteps) continue;
fX(normalize)(N, hit.normal);
cos_N_dir = fX(dot)(N, dir);