Fix embree4 bitrot.
This commit is contained in:
parent
a180da39ea
commit
ef8f28f33c
|
|
@ -243,8 +243,8 @@ public:
|
||||||
|
|
||||||
#ifdef HAVE_EMBREE4
|
#ifdef HAVE_EMBREE4
|
||||||
RTCIntersectArguments embree4_args = ctx2.setup_intersection_arguments();
|
RTCIntersectArguments embree4_args = ctx2.setup_intersection_arguments();
|
||||||
for (int i = 0; i < _numrays; ++i)
|
for (auto &ray : _rays)
|
||||||
rtcIntersect1(scene, &_rays[i], &embree4_args);
|
rtcIntersect1(scene, &ray.ray, &embree4_args);
|
||||||
#else
|
#else
|
||||||
rtcIntersect1M(scene, &ctx2, &_rays.data()->ray, _rays.size(), sizeof(_rays[0]));
|
rtcIntersect1M(scene, &ctx2, &_rays.data()->ray, _rays.size(), sizeof(_rays[0]));
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -310,8 +310,8 @@ public:
|
||||||
ray_source_info ctx2(this, self, shadowmask);
|
ray_source_info ctx2(this, self, shadowmask);
|
||||||
#ifdef HAVE_EMBREE4
|
#ifdef HAVE_EMBREE4
|
||||||
RTCOccludedArguments embree4_args = ctx2.setup_occluded_arguments();
|
RTCOccludedArguments embree4_args = ctx2.setup_occluded_arguments();
|
||||||
for (int i = 0; i < _numrays; ++i)
|
for (auto &ray : _rays)
|
||||||
rtcOccluded1(scene, &_rays[i], &embree4_args);
|
rtcOccluded1(scene, &ray.ray.ray, &embree4_args);
|
||||||
#else
|
#else
|
||||||
rtcOccluded1M(scene, &ctx2, &_rays.data()->ray.ray, _rays.size(), sizeof(_rays[0]));
|
rtcOccluded1M(scene, &ctx2, &_rays.data()->ray.ray, _rays.size(), sizeof(_rays[0]));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue