summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
diff options
context:
space:
mode:
authorRobin Kertels <robin.kertels@gmail.com>2022-09-24 03:05:43 +0200
committerRobin Kertels <robin.kertels@gmail.com>2022-10-01 01:26:03 +0200
commit2e6d8d65758734f24d27f7db0ec080ca279f5a92 (patch)
tree3678067f7d604d689d35f2c37d7122d976ab316a /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
parentdafe2c785ad3a6525674f5195c5105041ee524a8 (diff)
VideoBackends:Vulkan: Fix validation error around surface_capabilities2
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp5
1 files changed, 4 insertions, 1 deletions
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<const char*>* 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))
{