mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
[Vulkan] Only require surface extensions on windows
This commit is contained in:
parent
b865e324c2
commit
d791338c4d
1 changed files with 2 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue