Use VK_NULL_HANDLE for VkBuffer init (not VMA_NULL)

This commit is contained in:
Zachary Michaels 2019-05-31 19:35:59 -07:00
parent 8458ccee39
commit 12f110c96b

View File

@ -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)