From 2e6d8d65758734f24d27f7db0ec080ca279f5a92 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Sat, 24 Sep 2022 03:05:43 +0200 Subject: [PATCH] VideoBackends:Vulkan: Fix validation error around surface_capabilities2 --- Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp index 5b970cc9b1..bc9cc1169b 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp +++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp @@ -223,7 +223,10 @@ bool VulkanContext::SelectInstanceExtensions(std::vector* extension WARN_LOG_FMT(VIDEO, "Vulkan: Debug report requested, but extension is not available."); AddExtension(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME, false); - AddExtension(VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME, false); + if (wstype != WindowSystemType::Headless) + { + AddExtension(VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME, false); + } if (AddExtension(VK_EXT_DEBUG_UTILS_EXTENSION_NAME, false)) {