light: don't use c99 designated initializers (msvc compat)
This commit is contained in:
parent
882348ac0a
commit
707ae70fe1
|
|
@ -456,8 +456,8 @@ public:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const RTCIntersectContext ctx = {
|
const RTCIntersectContext ctx = {
|
||||||
.flags = RTC_INTERSECT_COHERENT,
|
RTC_INTERSECT_COHERENT,
|
||||||
.userRayExt = nullptr
|
nullptr
|
||||||
};
|
};
|
||||||
|
|
||||||
rtcOccluded1M(scene, &ctx, _rays, _numrays, sizeof(RTCRay));
|
rtcOccluded1M(scene, &ctx, _rays, _numrays, sizeof(RTCRay));
|
||||||
|
|
@ -468,8 +468,8 @@ public:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const RTCIntersectContext ctx = {
|
const RTCIntersectContext ctx = {
|
||||||
.flags = RTC_INTERSECT_COHERENT,
|
RTC_INTERSECT_COHERENT,
|
||||||
.userRayExt = nullptr
|
nullptr
|
||||||
};
|
};
|
||||||
|
|
||||||
rtcIntersect1M(scene, &ctx, _rays, _numrays, sizeof(RTCRay));
|
rtcIntersect1M(scene, &ctx, _rays, _numrays, sizeof(RTCRay));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue