Browse Source

Merge pull request #57836 from BastiaanOlij/deprecated_vulkan_macros

Rémi Verschelde 3 years ago
parent
commit
d435c51cda
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/vulkan/vulkan_context.cpp

+ 3 - 3
drivers/vulkan/vulkan_context.cpp

@@ -273,9 +273,9 @@ Error VulkanContext::_obtain_vulkan_version() {
 		uint32_t api_version;
 		uint32_t api_version;
 		VkResult res = func(&api_version);
 		VkResult res = func(&api_version);
 		if (res == VK_SUCCESS) {
 		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 {
 		} else {
 			// according to the documentation this shouldn't fail with anything except a memory allocation error
 			// according to the documentation this shouldn't fail with anything except a memory allocation error
 			// in which case we're in deep trouble anyway
 			// in which case we're in deep trouble anyway