From 2dce9a1c63a04be69815ec3f4b15e75c0b96a2ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 19 Jun 2023 12:47:46 +0200 Subject: [PATCH] MeshTools: don't zero init an array that gets fully overwritten. I really need to deprecate the "implicit value init" Array constructor, far too many cases like this. --- src/Magnum/MeshTools/Combine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/MeshTools/Combine.cpp b/src/Magnum/MeshTools/Combine.cpp index 4c9521864..82d01de49 100644 --- a/src/Magnum/MeshTools/Combine.cpp +++ b/src/Magnum/MeshTools/Combine.cpp @@ -61,7 +61,7 @@ Trade::MeshData combineIndexedImplementation( } /* Make the combined index array unique */ - Containers::Array indexData{combinedIndices.size()[0]*sizeof(UnsignedInt)}; + Containers::Array indexData{NoInit, combinedIndices.size()[0]*sizeof(UnsignedInt)}; const auto indexDataI = Containers::arrayCast(indexData); const UnsignedInt vertexCount = removeDuplicatesInPlaceInto( combinedIndices,