mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Merge pull request #62 from mikezackles/master
Use VK_NULL_HANDLE for VkBuffer init (not VMA_NULL)
This commit is contained in:
commit
fc4dda0714
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user