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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user