Nitpicking, VK_VERSION_* have been deprecated, replaced by VK_API_VERSION_*.

This commit is contained in:
Bastiaan Olij 2022-02-09 15:04:47 +11:00
parent a4759e375a
commit eb9d8ad44a
1 changed files with 3 additions and 3 deletions

View File

@ -273,9 +273,9 @@ Error VulkanContext::_obtain_vulkan_version() {
uint32_t api_version;
VkResult res = func(&api_version);
if (res == VK_SUCCESS) {
vulkan_major = VK_VERSION_MAJOR(api_version);
vulkan_minor = VK_VERSION_MINOR(api_version);
vulkan_patch = VK_VERSION_PATCH(api_version);
vulkan_major = VK_API_VERSION_MAJOR(api_version);
vulkan_minor = VK_API_VERSION_MINOR(api_version);
vulkan_patch = VK_API_VERSION_PATCH(api_version);
} else {
// according to the documentation this shouldn't fail with anything except a memory allocation error
// in which case we're in deep trouble anyway