[gtk/matthiasc/for-master] Fix warnings with Vulkan < 162
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] Fix warnings with Vulkan < 162
- Date: Tue, 22 Dec 2020 00:05:34 +0000 (UTC)
commit ea61ad0c062eab382c28296e2d63819ba82d8a64
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 21 18:04:16 2020 -0500
Fix warnings with Vulkan < 162
Tiring to watch the Vulkan people stumble through
ABI and API compat, but what can you do.
gdk/gdkvulkancontext.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index d0e47055c9..32126e7e1e 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -221,7 +221,11 @@ 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
+#if VK_HEADER_VERSION < 162
+ case VK_ERROR_INCOMPATIBLE_VERSION_KHR:
+ return "This error was removed by the Vulkan gods.";
+#endif
+#if VK_HEADER_VERSION < 142
case VK_RESULT_RANGE_SIZE:
#endif
case VK_RESULT_MAX_ENUM:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]