From 2ea07806af9f8eaa569bad0b2944bc72a095d1af Mon Sep 17 00:00:00 2001 From: manaskulkarni Date: Wed, 23 Nov 2022 14:02:24 +0530 Subject: [PATCH] BindBufferMemory, BindImageMemory - Return VK_ERROR_UNKNOWN for unknown allocation type --- include/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 4d35f45..ef23824 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -15598,7 +15598,7 @@ VkResult VmaAllocator_T::BindBufferMemory( VkBuffer hBuffer, const void* pNext) { - VkResult res = VK_SUCCESS; + VkResult res = VK_ERROR_UNKNOWN; switch(hAllocation->GetType()) { case VmaAllocation_T::ALLOCATION_TYPE_DEDICATED: @@ -15623,7 +15623,7 @@ VkResult VmaAllocator_T::BindImageMemory( VkImage hImage, const void* pNext) { - VkResult res = VK_SUCCESS; + VkResult res = VK_ERROR_UNKNOWN; switch(hAllocation->GetType()) { case VmaAllocation_T::ALLOCATION_TYPE_DEDICATED: