From 5e4158eb4869427ac13a0fe57e9b688ea4c3b0f1 Mon Sep 17 00:00:00 2001 From: DeeJayLSP Date: Thu, 24 Nov 2022 11:45:59 -0300 Subject: Update embree to 3.13.5 --- thirdparty/embree/kernels/bvh/bvh_node_qaabb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'thirdparty/embree/kernels/bvh/bvh_node_qaabb.h') diff --git a/thirdparty/embree/kernels/bvh/bvh_node_qaabb.h b/thirdparty/embree/kernels/bvh/bvh_node_qaabb.h index 2afc8c98e7..99671ddc5a 100644 --- a/thirdparty/embree/kernels/bvh/bvh_node_qaabb.h +++ b/thirdparty/embree/kernels/bvh/bvh_node_qaabb.h @@ -190,6 +190,14 @@ namespace embree template __forceinline NodeRef operator() (const BuildRecord& precord, const BuildRecord* crecords, NodeRef ref, NodeRef* children, const size_t num) const { +#if defined(DEBUG) + // check that empty children are only at the end of the child list + bool emptyChild = false; + for (size_t i=0; isetRef(i,children[i]); return ref; -- cgit v1.2.3