[Vulkan] Only require surface extensions on windows

This commit is contained in:
DrChat 2017-12-19 19:36:24 -06:00
parent b865e324c2
commit d791338c4d
1 changed files with 2 additions and 0 deletions

View File

@ -50,10 +50,12 @@ bool VulkanProvider::Initialize() {
instance_ = std::make_unique<VulkanInstance>();
// 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()) {