Skip to content

Commit

Permalink
Cap the API version at VK_API_VERSION_1_3
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Feb 2, 2025
1 parent 7399de7 commit 9d7cae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6518,7 +6518,8 @@ lvk::Result lvk::VulkanContext::initContext(const HWDeviceDesc& desc) {
}

if (LVK_VULKAN_USE_VMA) {
pimpl_->vma_ = lvk::createVmaAllocator(vkPhysicalDevice_, vkDevice_, vkInstance_, apiVersion);
pimpl_->vma_ = lvk::createVmaAllocator(
vkPhysicalDevice_, vkDevice_, vkInstance_, apiVersion > VK_API_VERSION_1_3 ? VK_API_VERSION_1_3 : apiVersion);
LVK_ASSERT(pimpl_->vma_ != VK_NULL_HANDLE);
}

Expand Down

0 comments on commit 9d7cae7

Please sign in to comment.