Refactor: Cycles: Replace new/delete by unique_ptr, in simple cases

Pull Request: https://projects.blender.org/blender/blender/pulls/132361
This commit is contained in:
Brecht Van Lommel
2024-12-29 23:13:45 +01:00
parent a8654a1dbe
commit 9971648783
92 changed files with 704 additions and 750 deletions

View File

@@ -894,7 +894,7 @@ hiprtScene HIPRTDevice::build_tlas(BVHHIPRT *bvh,
Geometry *geom = ob->get_geometry();
bool transform_applied = geom->transform_applied;
BVHHIPRT *current_bvh = static_cast<BVHHIPRT *>(geom->bvh);
BVHHIPRT *current_bvh = static_cast<BVHHIPRT *>(geom->bvh.get());
bool is_valid_geometry = current_bvh->geom_input.geomType != hiprtInvalidValue;
hiprtGeometry hiprt_geom_current = current_bvh->hiprt_geom;