Merge pull request #62 from mikezackles/master

Use VK_NULL_HANDLE for VkBuffer init (not VMA_NULL)
This commit is contained in:
Adam Sawicki 2019-06-03 10:52:25 +02:00 committed by GitHub
commit fc4dda0714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)