[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 01:00:36 +0000 (UTC)
commit 4310f24a4eec66ed701500bd56d787c9b5261b33
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..a561476dce 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -210,6 +210,10 @@ gdk_vulkan_strerror (VkResult result)
return "An unknown error has occurred; either the application has provided invalid input, or an
implementation failure has occurred.";
#endif
#if VK_HEADER_VERSION >= 135
+#if VK_HEADER_VERSION < 162
+ case VK_ERROR_INCOMPATIBLE_VERSION_KHR:
+ return "This error was removed by the Vulkan gods.";
+#endif
case VK_THREAD_IDLE_KHR:
return "A deferred operation is not complete but there is currently no work for this thread to do at
the time of this call.";
case VK_THREAD_DONE_KHR:
@@ -221,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 < 140
+#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]