Fix build issue due to missing VK_RESULT_RANGE_SIZE

Conditionally check whether the Vulkan headers version defines
VK_RESULT_RANGE_SIZE, and avoid using it for version >=140. The
following comming in Vulkan-Headers has removed the enum value:

  0c5351f5e9 (diff-4febd94c0666d59030d8b1dd20c72403)
This commit is contained in:
Adrian Perez de Castro 2020-05-11 10:07:41 +03:00
parent f6a4e68973
commit 5c4ca1424d
No known key found for this signature in database
GPG Key ID: 91C559DBE4C9123B

View File

@ -223,7 +223,9 @@ gdk_vulkan_strerror (VkResult result)
case VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT:
return "A requested pipeline creation would have required compilation, but the application requested compilation to not be performed.";
#endif
#if VK_HEADER_VERSION < 140
case VK_RESULT_RANGE_SIZE:
#endif
case VK_RESULT_MAX_ENUM:
default:
return "Unknown Vulkan error.";