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
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue