summaryrefslogtreecommitdiff
path: root/gdk/gdkvulkancontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-11-01 14:49:41 +0100
committerBenjamin Otte <otte@redhat.com>2019-11-01 14:52:36 +0100
commit41beae19569509f81e9cbe3695c94e17e9616e00 (patch)
tree03e4d721e43d27629a642057da0b44dd17aa142c /gdk/gdkvulkancontext.c
parent4cca27a7af280e0553d94152f18ea7024f4edbc7 (diff)
downloadgtk+-41beae19569509f81e9cbe3695c94e17e9616e00.tar.gz
vulkan: Add missing enum value
Also update comment to point to new header after Vulkan reorganized their repositories.
Diffstat (limited to 'gdk/gdkvulkancontext.c')
-rw-r--r--gdk/gdkvulkancontext.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 7234421e1b..247e6e094f 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -104,7 +104,7 @@ gdk_vulkan_strerror (VkResult result)
* Becuse the Vulkan people don't make adding this too easy, here's
* the process to manage it:
* 1. go to
- * https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blame/master/include/vulkan/vulkan.h
+ * https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h
* 2. Find the line where this enum value was added.
* 3. Click the commit that added this line.
* 4. The commit you're looking at now should also change
@@ -201,6 +201,10 @@ gdk_vulkan_strerror (VkResult result)
case VK_ERROR_INVALID_DEVICE_ADDRESS_EXT:
return "Invalid device address";
#endif
+#if VK_HEADER_VERSION >= 105
+ 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
case VK_RESULT_RANGE_SIZE:
case VK_RESULT_MAX_ENUM: