Fix regression in dynamic mesh bounds and triangles setup after refactor

This commit is contained in:
Wojtek Figat
2025-01-20 23:48:25 +01:00
parent d4a5c76c82
commit eaf48bb176
2 changed files with 6 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ namespace
// Index Buffer
{
if (accessor.AllocateBuffer(MeshBufferType::Index, triangleCount, indexFormat))
if (accessor.AllocateBuffer(MeshBufferType::Index, triangleCount * 3, indexFormat))
return true;
auto indexStream = accessor.Index();
ASSERT(indexStream.IsLinear(indexFormat));