diff --git a/src/compute b/src/compute index b854470c..7107f16d 160000 --- a/src/compute +++ b/src/compute @@ -1 +1 @@ -Subproject commit b854470cdac1d3bf2a931e1e96cb8ceab3fbdb70 +Subproject commit 7107f16df137eb0d18a36f02526c092bfb9ff570 diff --git a/src/util/loop_subdiv.cpp b/src/util/loop_subdiv.cpp index 0b13ecce..81aa760c 100644 --- a/src/util/loop_subdiv.cpp +++ b/src/util/loop_subdiv.cpp @@ -143,13 +143,13 @@ SubdivMesh loop_subdivide(luisa::span vertices, luisa::vector vs; luisa::vector faces; // Allocate _LoopSubdiv_ vertices and faces - auto verts = luisa::make_unique(vertices.size()); + luisa::vector verts(vertices.size()); for (auto i = 0u; i < vertices.size(); ++i) { verts[i] = SDVertex{vertices[i].position()}; vs.emplace_back(&verts[i]); } auto nFaces = triangles.size(); - auto fs = luisa::make_unique(nFaces); + luisa::vector fs(nFaces); for (int i = 0; i < nFaces; ++i) { fs[i].baseTriangle = i; faces.emplace_back(&fs[i]);