mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +00:00
Initialize structure VmaAllocator_T::m_VulkanFunctions to zeros in constructor to avoid garbage pointers
Fixes #73
This commit is contained in:
parent
195016b034
commit
692ccba14d
@ -14168,6 +14168,7 @@ VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) :
|
||||
|
||||
memset(&m_pBlockVectors, 0, sizeof(m_pBlockVectors));
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user