NonLocalAllocator: Remove orphaned slabs. Fixed #2867. (#3625)

This commit is contained in:
Branimir Karadžić
2026-03-07 20:02:40 -08:00
committed by GitHub
parent 2721c747ae
commit b28febb4a8
2 changed files with 54 additions and 34 deletions

View File

@@ -2223,9 +2223,6 @@ namespace bgfx
bx::alignedFree(g_allocator, m_encoder, BX_ALIGNOF(EncoderImpl) );
bx::free(g_allocator, m_encoderStats);
m_dynVertexBufferAllocator.compact();
m_dynIndexBufferAllocator.compact();
BX_ASSERT(
m_layoutHandle.getNumHandles() == m_vertexLayoutRef.m_vertexLayoutMap.getNumElements()
, "VertexLayoutRef mismatch, num handles %d, handles in hash map %d."