From a2eadcf82d38e08cd81032dedda33c0f1dc98101 Mon Sep 17 00:00:00 2001 From: Chris de Jong-Pobedinskiy Date: Sun, 5 May 2019 19:30:39 +0200 Subject: [PATCH] Fixed an issue with STL_CONTAINER compilation. Fixed an issue where defining the VMA_USE_STL_CONTAINERS macro would prevent VMA from compiling. This was caused by calling a VMA-container-specific function instead of the macro meant for abstracting away the differences. --- src/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index e315f81..deb1404 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -10527,7 +10527,7 @@ void VmaBlockMetadata_Linear::CleanupAfterFree() suballocations2nd[0].hAllocation == VK_NULL_HANDLE) { --m_2ndNullItemsCount; - suballocations2nd.remove(0); + VmaVectorRemove(suballocations2nd, 0); } if(ShouldCompact1st())