Skip to content

Commit 7ab8483

Browse files
Fixed assert in vmaCreateAllocator for compatibility with Vulkan 1.4
Fixes #457 - thanks @AlexRouSg
1 parent 790c461 commit 7ab8483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15070,7 +15070,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateAllocator(
1507015070
{
1507115071
VMA_ASSERT(pCreateInfo && pAllocator);
1507215072
VMA_ASSERT(pCreateInfo->vulkanApiVersion == 0 ||
15073-
(VK_VERSION_MAJOR(pCreateInfo->vulkanApiVersion) == 1 && VK_VERSION_MINOR(pCreateInfo->vulkanApiVersion) <= 3));
15073+
(VK_VERSION_MAJOR(pCreateInfo->vulkanApiVersion) == 1 && VK_VERSION_MINOR(pCreateInfo->vulkanApiVersion) <= 4));
1507415074
VMA_DEBUG_LOG("vmaCreateAllocator");
1507515075
*pAllocator = vma_new(pCreateInfo->pAllocationCallbacks, VmaAllocator_T)(pCreateInfo);
1507615076
VkResult result = (*pAllocator)->Init(pCreateInfo);

0 commit comments

Comments
 (0)