Initialize structure VmaAllocator_T::m_VulkanFunctions to zeros in constructor to avoid garbage pointers

Fixes #73
This commit is contained in:
Adam Sawicki 2019-07-25 17:14:02 +02:00
parent 195016b034
commit 692ccba14d

View File

@ -14168,6 +14168,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) :
memset(&m_pBlockVectors, 0, sizeof(m_pBlockVectors)); memset(&m_pBlockVectors, 0, sizeof(m_pBlockVectors));
memset(&m_pDedicatedAllocations, 0, sizeof(m_pDedicatedAllocations)); memset(&m_pDedicatedAllocations, 0, sizeof(m_pDedicatedAllocations));
memset(&m_VulkanFunctions, 0, sizeof(m_VulkanFunctions));
for(uint32_t i = 0; i < VK_MAX_MEMORY_HEAPS; ++i) for(uint32_t i = 0; i < VK_MAX_MEMORY_HEAPS; ++i)
{ {