Fix the Vulkan header check for VK_RESULT_RANGE_SIZE

The VK_RESULT_RANGE_SIZE enumeration value was removed in 1.2.140, not
1.2.142.

Fixes: #3522
This commit is contained in:
Emmanuele Bassi 2020-12-28 18:41:18 +00:00
parent 0fcf01ddd5
commit f22ec063a1

View File

@ -225,7 +225,7 @@ 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 < 142
#if VK_HEADER_VERSION < 140
case VK_RESULT_RANGE_SIZE:
#endif
case VK_RESULT_MAX_ENUM: