vulkan: Correct error enum version guards
authorJordan Petridis <jordan@centricular.com>
Mon, 1 May 2023 06:38:33 +0000 (09:38 +0300)
committerJordan Petridis <jordan@centricular.com>
Mon, 1 May 2023 06:41:35 +0000 (09:41 +0300)
Vulkan 218 introduced these errors by they were marked as
the beta till version 238.

https://github.com/KhronosGroup/Vulkan-Headers/commit/00671c64ba5c488ade22ad572a0ef81d5e64c803#diff-e222ae95c2b0d5082b94d6086fb1c24da18ee31384c1a39840df3b9152023ee6

Followup to f9b2d3104a681b3e2bb2c32c98e1d992fdd29034

gdk/gdkvulkancontext.c

index 07caa8af4b2142215992918d4018af671070e050..eb9b8ad83ab9c8e0da020875bd3f6dc5de15de8c 100644 (file)
@@ -223,7 +223,7 @@ gdk_vulkan_strerror (VkResult result)
 #if VK_HEADER_VERSION < 140
     case VK_RESULT_RANGE_SIZE:
 #endif
-#if VK_HEADER_VERSION >= 218
+#if VK_HEADER_VERSION >= 238
     case VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR:
       return "The requested VkImageUsageFlags are not supported. (VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR)";
     case VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: