VOXELFORMAT: fixed hash map size

master
Martin Gerhardy 2022-05-11 23:44:05 +02:00
parent c9a10ec425
commit 84f5b7be3e
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ void MeshFormat::voxelizeTris(voxel::RawVolume *volume, const core::DynamicArray
};
typedef core::Map<glm::ivec3, PosSampling, 64, glm::hash<glm::ivec3>> PosMap;
PosMap posMap((int)subdivided.size());
PosMap posMap((int)subdivided.size() * 3);
for (const Tri &tri : subdivided) {
const glm::vec2 &uv = tri.centerUV();
const core::RGBA rgba = tri.colorAt(uv);