summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-02-09 08:16:49 +0100
committerGitHub <noreply@github.com>2022-02-09 08:16:49 +0100
commitd435c51cda529cc85a945fb909217dd6b0dc531b (patch)
tree346cc639f5755d4122442e5f47de29f35e729bcf
parenta4759e375a5adcba6de7aaad11f3a5408592ea4c (diff)
parenteb9d8ad44ae3cd6d793c472dd7c64110275eff8c (diff)
Merge pull request #57836 from BastiaanOlij/deprecated_vulkan_macros
-rw-r--r--drivers/vulkan/vulkan_context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp
index 44455b927b..689d76ba26 100644
--- a/drivers/vulkan/vulkan_context.cpp
+++ b/drivers/vulkan/vulkan_context.cpp
@@ -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