From 12f110c96b87560772ffe58e02b647d4167617ed Mon Sep 17 00:00:00 2001 From: Zachary Michaels Date: Fri, 31 May 2019 19:35:59 -0700 Subject: [PATCH] Use VK_NULL_HANDLE for VkBuffer init (not VMA_NULL) --- 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 deb1404..cd022c7 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -15592,7 +15592,7 @@ uint32_t VmaAllocator_T::CalculateGpuDefragmentationMemoryTypeBits() const uint32_t memoryTypeBits = 0; // Create buffer. - VkBuffer buf = VMA_NULL; + VkBuffer buf = VK_NULL_HANDLE; VkResult res = (*GetVulkanFunctions().vkCreateBuffer)( m_hDevice, &dummyBufCreateInfo, GetAllocationCallbacks(), &buf); if(res == VK_SUCCESS)