summaryrefslogtreecommitdiff
path: root/gdk/gdkvulkancontext.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-02-11 14:07:43 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-02-11 14:47:22 +0000
commitc69595a3a97775fa0ca915834dbc5ea77a6241d8 (patch)
tree7ab66297cbf1107c46569f71098e80920de02538 /gdk/gdkvulkancontext.c
parent76aba1f0460fde2115842e8480d700f1e5418138 (diff)
downloadgtk+-c69595a3a97775fa0ca915834dbc5ea77a6241d8.tar.gz
vulkan: Handle VK_ERROR_UNKNOWN
A newly added Vulkan 1.2 error.
Diffstat (limited to 'gdk/gdkvulkancontext.c')
-rw-r--r--gdk/gdkvulkancontext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 5582afeb92..76f120b76a 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -205,7 +205,10 @@ gdk_vulkan_strerror (VkResult result)
case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:
return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT failed as it did not have exlusive full-screen access.";
#endif
-
+#if VK_HEADER_VERSION >= 131
+ case VK_ERROR_UNKNOWN:
+ return "An unknown error has occurred; either the application has provided invalid input, or an implementation failure has occurred.";
+#endif
case VK_RESULT_RANGE_SIZE:
case VK_RESULT_MAX_ENUM:
default: