From d663048696b2d63a65d607e5e8dec3b2b320982c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 11 Jul 2019 12:59:19 +0200 Subject: Fix T66691: Ceash trying to render the 2.80 splash image Was caused by ray direction becoming NaN after some of the bounces. --- intern/cycles/kernel/bvh/bvh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h index 7503bad37b0..be0f05285e8 100644 --- a/intern/cycles/kernel/bvh/bvh.h +++ b/intern/cycles/kernel/bvh/bvh.h @@ -174,7 +174,7 @@ ccl_device_inline bool scene_intersect_valid(const Ray *ray) * From production scenes so far it seems it's enough to test first element * only. */ - return isfinite(ray->P.x); + return isfinite_safe(ray->P.x) && isfinite_safe(ray->D.x); } /* Note: ray is passed by value to work around a possible CUDA compiler bug. */ -- cgit v1.2.3