Skip to content

Commit 9d7cae7

Browse files
Cap the API version at VK_API_VERSION_1_3
1 parent 7399de7 commit 9d7cae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lvk/vulkan/VulkanClasses.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6518,7 +6518,8 @@ lvk::Result lvk::VulkanContext::initContext(const HWDeviceDesc& desc) {
65186518
}
65196519

65206520
if (LVK_VULKAN_USE_VMA) {
6521-
pimpl_->vma_ = lvk::createVmaAllocator(vkPhysicalDevice_, vkDevice_, vkInstance_, apiVersion);
6521+
pimpl_->vma_ = lvk::createVmaAllocator(
6522+
vkPhysicalDevice_, vkDevice_, vkInstance_, apiVersion > VK_API_VERSION_1_3 ? VK_API_VERSION_1_3 : apiVersion);
65226523
LVK_ASSERT(pimpl_->vma_ != VK_NULL_HANDLE);
65236524
}
65246525

0 commit comments

Comments
 (0)