mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
Fixed assert in vmaCreateAllocator for compatibility with Vulkan 1.4
Fixes #457 - thanks @AlexRouSg
This commit is contained in:
parent
790c461476
commit
7ab8483d10
1 changed files with 1 additions and 1 deletions
|
@ -15070,7 +15070,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateAllocator(
|
|||
{
|
||||
VMA_ASSERT(pCreateInfo && pAllocator);
|
||||
VMA_ASSERT(pCreateInfo->vulkanApiVersion == 0 ||
|
||||
(VK_VERSION_MAJOR(pCreateInfo->vulkanApiVersion) == 1 && VK_VERSION_MINOR(pCreateInfo->vulkanApiVersion) <= 3));
|
||||
(VK_VERSION_MAJOR(pCreateInfo->vulkanApiVersion) == 1 && VK_VERSION_MINOR(pCreateInfo->vulkanApiVersion) <= 4));
|
||||
VMA_DEBUG_LOG("vmaCreateAllocator");
|
||||
*pAllocator = vma_new(pCreateInfo->pAllocationCallbacks, VmaAllocator_T)(pCreateInfo);
|
||||
VkResult result = (*pAllocator)->Init(pCreateInfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue