From 51ae59ddc1a5dcb80267afb739611d3a5bee787a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 24 May 2020 22:30:36 +0200 Subject: [PATCH] Primitives: use non-fuzzy duplicate removal in icosphere. Now that it actually works properly, it ... works properly. --- src/Magnum/Primitives/Icosphere.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Primitives/Icosphere.cpp b/src/Magnum/Primitives/Icosphere.cpp index cab2ec9a3..7e6a49aeb 100644 --- a/src/Magnum/Primitives/Icosphere.cpp +++ b/src/Magnum/Primitives/Icosphere.cpp @@ -116,9 +116,9 @@ Trade::MeshData icosphereSolid(const UnsignedInt subdivisions) { /** @todo i need arrayShrinkAndGiveUpMemoryIfItDoesntCauseRealloc() */ Containers::arrayResize(vertexData, - MeshTools::removeDuplicatesFuzzyIndexedInPlace( + MeshTools::removeDuplicatesIndexedInPlace( Containers::stridedArrayView(indices), - Containers::arrayCast<2, Float>(positions))*sizeof(Vertex)); + Containers::arrayCast<2, char>(positions))*sizeof(Vertex)); } /* Build up the views again with correct size, fill the normals */