From d791338c4d65a8a34dbe0594eb7f04a470c06a54 Mon Sep 17 00:00:00 2001 From: DrChat Date: Tue, 19 Dec 2017 19:36:24 -0600 Subject: [PATCH] [Vulkan] Only require surface extensions on windows --- src/xenia/ui/vulkan/vulkan_provider.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/ui/vulkan/vulkan_provider.cc b/src/xenia/ui/vulkan/vulkan_provider.cc index 3a7abcd5a..0960557ef 100644 --- a/src/xenia/ui/vulkan/vulkan_provider.cc +++ b/src/xenia/ui/vulkan/vulkan_provider.cc @@ -50,10 +50,12 @@ bool VulkanProvider::Initialize() { instance_ = std::make_unique(); // Always enable the swapchain. +#if XE_PLATFORM_WIN32 instance_->DeclareRequiredExtension("VK_KHR_surface", Version::Make(0, 0, 0), false); instance_->DeclareRequiredExtension("VK_KHR_win32_surface", Version::Make(0, 0, 0), false); +#endif // Attempt initialization and device query. if (!instance_->Initialize()) {