diff options
Diffstat (limited to 'media-libs/libsdl2/files/libsdl2-2.0.12-vulkan-headers.patch')
-rw-r--r-- | media-libs/libsdl2/files/libsdl2-2.0.12-vulkan-headers.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media-libs/libsdl2/files/libsdl2-2.0.12-vulkan-headers.patch b/media-libs/libsdl2/files/libsdl2-2.0.12-vulkan-headers.patch new file mode 100644 index 000000000000..717e5b5db38e --- /dev/null +++ b/media-libs/libsdl2/files/libsdl2-2.0.12-vulkan-headers.patch @@ -0,0 +1,17 @@ +Fix building against the latest Vulkan headers. + +Bug: https://bugs.gentoo.org/721954 +Bug: https://bugzilla.libsdl.org/show_bug.cgi?id=5227 + +--- a/src/video/SDL_vulkan_utils.c 2020-03-10 21:36:18.000000000 -0400 ++++ b/src/video/SDL_vulkan_utils.c 2020-06-14 21:49:15.780898839 -0400 +@@ -85,7 +85,9 @@ + case VK_ERROR_INVALID_SHADER_NV: + return "VK_ERROR_INVALID_SHADER_NV"; + case VK_RESULT_MAX_ENUM: ++#if VK_HEADER_VERSION < 140 + case VK_RESULT_RANGE_SIZE: ++#endif + break; + } + if(result < 0) |