From a74f888ff9ed1254e9b9965a27d68e0526e2c0f8 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 29 Apr 2021 22:25:00 +0200 Subject: [PATCH] Fixed bug #4337 - compilation of 'SDL_vulkan_utils' fails with 'VK_ERROR_INCOMPATIBLE_VERSION_KHR' undeclared --- src/video/SDL_vulkan_utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/SDL_vulkan_utils.c b/src/video/SDL_vulkan_utils.c index e42af137a..146867392 100644 --- a/src/video/SDL_vulkan_utils.c +++ b/src/video/SDL_vulkan_utils.c @@ -88,8 +88,10 @@ const char *SDL_Vulkan_GetResultString(VkResult result) return "VK_ERROR_VALIDATION_FAILED_EXT"; case VK_ERROR_INVALID_SHADER_NV: return "VK_ERROR_INVALID_SHADER_NV"; +#if VK_HEADER_VERSION >= 135 && VK_HEADER_VERSION < 162 case VK_ERROR_INCOMPATIBLE_VERSION_KHR: return "VK_ERROR_INCOMPATIBLE_VERSION_KHR"; +#endif case VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT: return "VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT"; case VK_ERROR_NOT_PERMITTED_EXT: