Fix build failure after recent HIP-RT change

Fixes build failure after 6b848a9993

Pull Request: https://projects.blender.org/blender/blender/pulls/125936
This commit is contained in:
Alaska
2024-08-06 02:41:11 +02:00
committed by Sean Kim
parent a9f9062df2
commit 50ba7a3033

View File

@@ -889,7 +889,7 @@ hiprtScene HIPRTDevice::build_tlas(BVHHIPRT *bvh,
int time_offset = bvh->prims_time.size();
prim_time_map[geom] = time_offset;
bvh.prims_time.resize(time_offset + current_bvh->prims_time.size());
bvh->prims_time.resize(time_offset + current_bvh->prims_time.size());
memcpy(bvh->prims_time.data() + time_offset,
current_bvh->prims_time.data(),
current_bvh->prims_time.size() * sizeof(float2));