From 0c23cdaf3d990c77acbebe897e9b38c86d828ab3 Mon Sep 17 00:00:00 2001 From: jasaaved Date: Wed, 29 Apr 2026 23:31:29 -0700 Subject: [PATCH 1/5] Windows Vulkan: default to borderless fullscreen, add exclusive option Vulkan swapchain now explicitly sets VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT by default, enabling proper borderless fullscreen behavior with benefits including better Alt+Tab, VRR/G-Sync/FreeSync, and Auto HDR support. --- Common/GPU/Vulkan/VulkanContext.cpp | 6 ++++++ Common/GPU/Vulkan/VulkanContext.h | 9 +++++++++ Core/Config.cpp | 1 + Core/Config.h | 1 + UI/GameSettingsScreen.cpp | 4 ++++ Windows/GPU/WindowsVulkanContext.cpp | 14 ++++++++++++++ 6 files changed, 35 insertions(+) diff --git a/Common/GPU/Vulkan/VulkanContext.cpp b/Common/GPU/Vulkan/VulkanContext.cpp index 9b384731eb..e51ba32a91 100644 --- a/Common/GPU/Vulkan/VulkanContext.cpp +++ b/Common/GPU/Vulkan/VulkanContext.cpp @@ -1530,6 +1530,12 @@ bool VulkanContext::InitSwapchain(VkPresentModeKHR desiredPresentMode) { swap_chain_info.compositeAlpha = VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR; } +#ifdef VK_EXT_full_screen_exclusive + VkSurfaceFullScreenExclusiveInfoEXT fullScreenInfo{ VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT }; + fullScreenInfo.fullScreenExclusive = fullScreenExclusiveMode_; + swap_chain_info.pNext = &fullScreenInfo; +#endif + res = vkCreateSwapchainKHR(device_, &swap_chain_info, NULL, &swapchain_); if (res != VK_SUCCESS) { ERROR_LOG(Log::G3D, "vkCreateSwapchainKHR failed! %s", VulkanResultToString(res)); diff --git a/Common/GPU/Vulkan/VulkanContext.h b/Common/GPU/Vulkan/VulkanContext.h index 6df3e67864..e1d1d8bd8e 100644 --- a/Common/GPU/Vulkan/VulkanContext.h +++ b/Common/GPU/Vulkan/VulkanContext.h @@ -412,6 +412,10 @@ public: return presentMode_; } +#ifdef VK_EXT_full_screen_exclusive + void SetFullScreenExclusiveMode(VkFullScreenExclusiveEXT mode) { fullScreenExclusiveMode_ = mode; } +#endif + std::vector GetAvailablePresentModes() const { return availablePresentModes_; } @@ -530,6 +534,11 @@ private: PhysicalDeviceFeatures deviceFeatures_; +#ifdef VK_EXT_full_screen_exclusive + VkFullScreenExclusiveEXT fullScreenExclusiveMode_ = VK_FULL_SCREEN_EXCLUSIVE_DEFAULT_EXT; +#endif + + VkSurfaceCapabilitiesKHR surfCapabilities_{}; std::vector surfFormats_{}; diff --git a/Core/Config.cpp b/Core/Config.cpp index 8114467109..5f650ad535 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -749,6 +749,7 @@ static const ConfigSetting graphicsSettings[] = { #ifndef MOBILE_DEVICE ConfigSetting("FullScreen", SETTING(g_Config, bFullScreen), false, CfgFlag::DEFAULT), ConfigSetting("FullScreenMulti", SETTING(g_Config, bFullScreenMulti), false, CfgFlag::DEFAULT), + ConfigSetting("FullScreenExclusive", SETTING(g_Config, bFullScreenExclusive), false, CfgFlag::DEFAULT), #endif #if PPSSPP_PLATFORM(IOS) diff --git a/Core/Config.h b/Core/Config.h index 08648c2d5f..cb56aacaa3 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -325,6 +325,7 @@ public: int iAppSwitchMode; bool bFullScreen; bool bFullScreenMulti; + bool bFullScreenExclusive; int iInternalResolution; // 0 = Auto (native), 1 = 1x (480x272), 2 = 2x, 3 = 3x, 4 = 4x and so on. int iAnisotropyLevel; // 0 - 5, powers of 2: 0 = 1x = no aniso int iMultiSampleLevel; diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index bfae4e00dd..87d3464720 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -421,6 +421,10 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) System_ApplyFullscreenState(); }); } + CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); + fullscreenExclusive->SetEnabledFunc([] { + return g_Config.bFullScreen; + }); #endif // Display Layout Editor: To avoid overlapping touch controls on large tablets, meet geeky demands for integer zoom/unstretched image etc. Choice *displayEditor = graphicsSettings->Add(new Choice(gr->T("Display layout & effects"))); diff --git a/Windows/GPU/WindowsVulkanContext.cpp b/Windows/GPU/WindowsVulkanContext.cpp index 243f210345..192386d5f2 100644 --- a/Windows/GPU/WindowsVulkanContext.cpp +++ b/Windows/GPU/WindowsVulkanContext.cpp @@ -126,6 +126,13 @@ bool WindowsVulkanContext::Init(HINSTANCE hInst, HWND hWnd, std::string *error_m draw_ = Draw::T3DCreateVulkanContext(vulkan_, useMultiThreading); VkPresentModeKHR presentMode = ConfigPresentModeToVulkan(draw_); + +#ifdef VK_EXT_full_screen_exclusive + vulkan_->SetFullScreenExclusiveMode(g_Config.bFullScreen && g_Config.bFullScreenExclusive + ? VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT + : VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT); +#endif + if (!vulkan_->InitSwapchain(presentMode)) { *error_message = vulkan_->InitError(); Shutdown(); @@ -169,6 +176,13 @@ void WindowsVulkanContext::Shutdown() { void WindowsVulkanContext::Resize() { draw_->HandleEvent(Draw::Event::LOST_BACKBUFFER, vulkan_->GetBackbufferWidth(), vulkan_->GetBackbufferHeight()); VkPresentModeKHR presentMode = ConfigPresentModeToVulkan(draw_); + +#ifdef VK_EXT_full_screen_exclusive + vulkan_->SetFullScreenExclusiveMode(g_Config.bFullScreen && g_Config.bFullScreenExclusive + ? VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT + : VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT); +#endif + vulkan_->InitSwapchain(presentMode); draw_->HandleEvent(Draw::Event::GOT_BACKBUFFER, vulkan_->GetBackbufferWidth(), vulkan_->GetBackbufferHeight()); } From b5bd685556c2c96e4737a114a077b907fc8f4fa4 Mon Sep 17 00:00:00 2001 From: jasaaved Date: Thu, 30 Apr 2026 06:14:24 -0700 Subject: [PATCH 2/5] Add VK_EXT_full_screen_exclusive guard Exclusive fullscreen option is now hidden on platforms without VK_EXT_full_screen_exclusive. --- UI/GameSettingsScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 87d3464720..9bbbc36669 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -421,10 +421,12 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) System_ApplyFullscreenState(); }); } +#ifdef VK_EXT_full_screen_exclusive CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); fullscreenExclusive->SetEnabledFunc([] { return g_Config.bFullScreen; }); +#endif #endif // Display Layout Editor: To avoid overlapping touch controls on large tablets, meet geeky demands for integer zoom/unstretched image etc. Choice *displayEditor = graphicsSettings->Add(new Choice(gr->T("Display layout & effects"))); From 5e251180434b135da6060c1a1a47d02e5a276955 Mon Sep 17 00:00:00 2001 From: jasaaved Date: Fri, 1 May 2026 09:03:14 -0700 Subject: [PATCH 3/5] Fix the exclusive fullscreen config guard and switching the setting on/off Previously the exclusive fullscreen option in the settings screen was guarded by a compile-time #ifdef VK_EXT_full_screen_exclusive, which is always true on Windows. It now uses a runtime fullScreenExclusiveSupported cap derived from whether the extension is actually enabled by the driver. Switching between borderless and exclusive fullscreen currently requires a restart. This is because once DWM has claimed the window (any frames presented), ALLOWED_EXT cannot re-engage exclusive mode on an existing swapchain. A new process gets a fresh HWND that DWM has not claimed yet, so ALLOWED_EXT works correctly at startup. The proper fix is to use VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT with vkAcquireFullScreenExclusiveModeEXT/vkReleaseFullScreenExclusiveModeEXT to explicitly negotiate exclusive mode with DWM mid-session without needing a restart. To be done in a follow-up. --- Common/GPU/Vulkan/VulkanContext.cpp | 15 ++++++++++++--- Common/GPU/Vulkan/VulkanContext.h | 2 +- Common/GPU/Vulkan/VulkanLoader.h | 1 + Common/GPU/Vulkan/thin3d_vulkan.cpp | 1 + Common/GPU/thin3d.h | 1 + UI/GameSettingsScreen.cpp | 18 ++++++++++++------ 6 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Common/GPU/Vulkan/VulkanContext.cpp b/Common/GPU/Vulkan/VulkanContext.cpp index e51ba32a91..ca83bf9739 100644 --- a/Common/GPU/Vulkan/VulkanContext.cpp +++ b/Common/GPU/Vulkan/VulkanContext.cpp @@ -670,7 +670,9 @@ VkResult VulkanContext::CreateDevice(int physical_device) { } extensionsLookup_.EXT_provoking_vertex = EnableDeviceExtension(VK_EXT_PROVOKING_VERTEX_EXTENSION_NAME, 0); - +#ifdef VK_EXT_full_screen_exclusive + extensionsLookup_.EXT_full_screen_exclusive = EnableDeviceExtension(VK_EXT_FULL_SCREEN_EXCLUSIVE_EXTENSION_NAME, 0); +#endif extensionsLookup_.KHR_present_mode_fifo_latest_ready = EnableDeviceExtension(VK_KHR_PRESENT_MODE_FIFO_LATEST_READY_EXTENSION_NAME, 0); if (!extensionsLookup_.KHR_present_mode_fifo_latest_ready) { // Enable the EXT extension instead if available, it's equivalent (was promoted). @@ -1532,8 +1534,15 @@ bool VulkanContext::InitSwapchain(VkPresentModeKHR desiredPresentMode) { #ifdef VK_EXT_full_screen_exclusive VkSurfaceFullScreenExclusiveInfoEXT fullScreenInfo{ VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT }; - fullScreenInfo.fullScreenExclusive = fullScreenExclusiveMode_; - swap_chain_info.pNext = &fullScreenInfo; + VkSurfaceFullScreenExclusiveWin32InfoEXT win32ExclusiveInfo{ VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT }; + if (extensionsLookup_.EXT_full_screen_exclusive) { + fullScreenInfo.fullScreenExclusive = fullScreenExclusiveMode_; + if (fullScreenExclusiveMode_ == VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT) { + win32ExclusiveInfo.hmonitor = MonitorFromWindow((HWND)winsysData2_, MONITOR_DEFAULTTONEAREST); + fullScreenInfo.pNext = &win32ExclusiveInfo; + } + swap_chain_info.pNext = &fullScreenInfo; + } #endif res = vkCreateSwapchainKHR(device_, &swap_chain_info, NULL, &swapchain_); diff --git a/Common/GPU/Vulkan/VulkanContext.h b/Common/GPU/Vulkan/VulkanContext.h index e1d1d8bd8e..30d5c1053d 100644 --- a/Common/GPU/Vulkan/VulkanContext.h +++ b/Common/GPU/Vulkan/VulkanContext.h @@ -536,7 +536,7 @@ private: #ifdef VK_EXT_full_screen_exclusive VkFullScreenExclusiveEXT fullScreenExclusiveMode_ = VK_FULL_SCREEN_EXCLUSIVE_DEFAULT_EXT; -#endif +#endif VkSurfaceCapabilitiesKHR surfCapabilities_{}; diff --git a/Common/GPU/Vulkan/VulkanLoader.h b/Common/GPU/Vulkan/VulkanLoader.h index 132e096403..5c571cf48d 100644 --- a/Common/GPU/Vulkan/VulkanLoader.h +++ b/Common/GPU/Vulkan/VulkanLoader.h @@ -272,6 +272,7 @@ struct VulkanExtensions { bool EXT_provoking_vertex; bool KHR_present_mode_fifo_latest_ready; bool EXT_scalar_block_layout; + bool EXT_full_screen_exclusive; // bool EXT_depth_range_unrestricted; // Allows depth outside [0.0, 1.0] in 32-bit float depth buffers. }; diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index 6278e82043..b5cd55bfd2 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -953,6 +953,7 @@ VKContext::VKContext(VulkanContext *vulkan, bool useRenderThread) // Note that it must also be enabled on the pipelines (which we do). caps_.provokingVertexLast = vulkan->GetDeviceFeatures().enabled.provokingVertex.provokingVertexLast; + caps_.fullScreenExclusiveSupported = vulkan->Extensions().EXT_full_screen_exclusive; // Present mode stuff caps_.presentMaxInterval = 1; caps_.presentInstantModeChange = false; // TODO: Fix this with some work in VulkanContext diff --git a/Common/GPU/thin3d.h b/Common/GPU/thin3d.h index f99673d5cb..b5d8019abf 100644 --- a/Common/GPU/thin3d.h +++ b/Common/GPU/thin3d.h @@ -633,6 +633,7 @@ struct DeviceCaps { bool requiresHalfPixelOffset; bool provokingVertexLast; // GL behavior, what the PSP does bool verySlowShaderCompiler; + bool fullScreenExclusiveSupported; // Old style, for older GL or Direct3D 9. u32 clipPlanesSupported; diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 9bbbc36669..994c210266 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -421,12 +421,18 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) System_ApplyFullscreenState(); }); } -#ifdef VK_EXT_full_screen_exclusive - CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); - fullscreenExclusive->SetEnabledFunc([] { - return g_Config.bFullScreen; - }); -#endif + if (draw->GetDeviceCaps().fullScreenExclusiveSupported) { + CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); + fullscreenExclusive->SetEnabledFunc([] { + return g_Config.bFullScreen; + }); + fullscreenExclusive->OnClick.Add([this](UI::EventParams &e) { + TriggerRestartOrDo([this]() { + g_Config.bFullScreenExclusive = !g_Config.bFullScreenExclusive; + RecreateViews(); + }); + }); + } #endif // Display Layout Editor: To avoid overlapping touch controls on large tablets, meet geeky demands for integer zoom/unstretched image etc. Choice *displayEditor = graphicsSettings->Add(new Choice(gr->T("Display layout & effects"))); From 0147ea0ae8fb381a00af35d2bf84261ac9c03b3a Mon Sep 17 00:00:00 2001 From: jasaaved Date: Sat, 2 May 2026 07:45:14 -0700 Subject: [PATCH 4/5] Grey out "Use all screens" when "Exclusive fullscreen" is on Exclusive full screens is fundamentally a single monitor concept. It doesn't make sense to have "use all screens" and "Exclusive fullscreen". The order of the options have been swapped so "Fullscreen" and "Exclusive Fullscreen" are right next to each other. --- UI/GameSettingsScreen.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 994c210266..dce0396101 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -412,19 +412,10 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) fullscreenCheckbox->OnClick.Add([](UI::EventParams &e) { System_ApplyFullscreenState(); }); - if (System_GetPropertyInt(SYSPROP_DISPLAY_COUNT) > 1) { - CheckBox *fullscreenMulti = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenMulti, gr->T("Use all displays"))); - fullscreenMulti->SetEnabledFunc([] { - return g_Config.bFullScreen; - }); - fullscreenMulti->OnClick.Add([](UI::EventParams &e) { - System_ApplyFullscreenState(); - }); - } if (draw->GetDeviceCaps().fullScreenExclusiveSupported) { CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); fullscreenExclusive->SetEnabledFunc([] { - return g_Config.bFullScreen; + return g_Config.bFullScreen && !g_Config.bFullScreenMulti; }); fullscreenExclusive->OnClick.Add([this](UI::EventParams &e) { TriggerRestartOrDo([this]() { @@ -433,6 +424,15 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) }); }); } + if (System_GetPropertyInt(SYSPROP_DISPLAY_COUNT) > 1) { + CheckBox *fullscreenMulti = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenMulti, gr->T("Use all displays"))); + fullscreenMulti->SetEnabledFunc([] { + return g_Config.bFullScreen && !g_Config.bFullScreenExclusive; + }); + fullscreenMulti->OnClick.Add([](UI::EventParams &e) { + System_ApplyFullscreenState(); + }); + } #endif // Display Layout Editor: To avoid overlapping touch controls on large tablets, meet geeky demands for integer zoom/unstretched image etc. Choice *displayEditor = graphicsSettings->Add(new Choice(gr->T("Display layout & effects"))); From 95006cf1d3afb8c44238e42497eeb013c20bd07f Mon Sep 17 00:00:00 2001 From: jasaaved Date: Thu, 4 Jun 2026 12:54:52 -0700 Subject: [PATCH 5/5] Changed bFullScreenExclusive to bAllowFullScreenExclusive There's no guarantee VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT will enter Fullscreen exclusive (FSE). Under the right conditions, the driver and/or DWM can grant FSE. Adding "allow" to the FSE setting should make this a bit clearer. --- Core/Config.cpp | 2 +- Core/Config.h | 2 +- UI/GameSettingsScreen.cpp | 6 +++--- Windows/GPU/WindowsVulkanContext.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 5f650ad535..ce1db82671 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -748,8 +748,8 @@ static const ConfigSetting graphicsSettings[] = { #ifndef MOBILE_DEVICE ConfigSetting("FullScreen", SETTING(g_Config, bFullScreen), false, CfgFlag::DEFAULT), + ConfigSetting("FullScreenExclusive", SETTING(g_Config, bAllowFullScreenExclusive), false, CfgFlag::DEFAULT), ConfigSetting("FullScreenMulti", SETTING(g_Config, bFullScreenMulti), false, CfgFlag::DEFAULT), - ConfigSetting("FullScreenExclusive", SETTING(g_Config, bFullScreenExclusive), false, CfgFlag::DEFAULT), #endif #if PPSSPP_PLATFORM(IOS) diff --git a/Core/Config.h b/Core/Config.h index cb56aacaa3..0d5362737f 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -325,7 +325,7 @@ public: int iAppSwitchMode; bool bFullScreen; bool bFullScreenMulti; - bool bFullScreenExclusive; + bool bAllowFullScreenExclusive; int iInternalResolution; // 0 = Auto (native), 1 = 1x (480x272), 2 = 2x, 3 = 3x, 4 = 4x and so on. int iAnisotropyLevel; // 0 - 5, powers of 2: 0 = 1x = no aniso int iMultiSampleLevel; diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index dce0396101..94dcd2a1fe 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -413,13 +413,13 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) System_ApplyFullscreenState(); }); if (draw->GetDeviceCaps().fullScreenExclusiveSupported) { - CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenExclusive, gr->T("Exclusive fullscreen"))); + CheckBox* fullscreenExclusive = graphicsSettings->Add(new CheckBox(&g_Config.bAllowFullScreenExclusive, gr->T("Allow exclusive fullscreen"))); fullscreenExclusive->SetEnabledFunc([] { return g_Config.bFullScreen && !g_Config.bFullScreenMulti; }); fullscreenExclusive->OnClick.Add([this](UI::EventParams &e) { TriggerRestartOrDo([this]() { - g_Config.bFullScreenExclusive = !g_Config.bFullScreenExclusive; + g_Config.bAllowFullScreenExclusive = !g_Config.bAllowFullScreenExclusive; RecreateViews(); }); }); @@ -427,7 +427,7 @@ void GameSettingsScreen::CreateGraphicsSettings(UI::ViewGroup *graphicsSettings) if (System_GetPropertyInt(SYSPROP_DISPLAY_COUNT) > 1) { CheckBox *fullscreenMulti = graphicsSettings->Add(new CheckBox(&g_Config.bFullScreenMulti, gr->T("Use all displays"))); fullscreenMulti->SetEnabledFunc([] { - return g_Config.bFullScreen && !g_Config.bFullScreenExclusive; + return g_Config.bFullScreen && !g_Config.bAllowFullScreenExclusive; }); fullscreenMulti->OnClick.Add([](UI::EventParams &e) { System_ApplyFullscreenState(); diff --git a/Windows/GPU/WindowsVulkanContext.cpp b/Windows/GPU/WindowsVulkanContext.cpp index 192386d5f2..74485e80db 100644 --- a/Windows/GPU/WindowsVulkanContext.cpp +++ b/Windows/GPU/WindowsVulkanContext.cpp @@ -128,7 +128,7 @@ bool WindowsVulkanContext::Init(HINSTANCE hInst, HWND hWnd, std::string *error_m VkPresentModeKHR presentMode = ConfigPresentModeToVulkan(draw_); #ifdef VK_EXT_full_screen_exclusive - vulkan_->SetFullScreenExclusiveMode(g_Config.bFullScreen && g_Config.bFullScreenExclusive + vulkan_->SetFullScreenExclusiveMode(g_Config.bFullScreen && g_Config.bAllowFullScreenExclusive ? VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT : VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT); #endif @@ -178,7 +178,7 @@ void WindowsVulkanContext::Resize() { VkPresentModeKHR presentMode = ConfigPresentModeToVulkan(draw_); #ifdef VK_EXT_full_screen_exclusive - vulkan_->SetFullScreenExclusiveMode(g_Config.bFullScreen && g_Config.bFullScreenExclusive + vulkan_->SetFullScreenExclusiveMode(g_Config.bFullScreen && g_Config.bAllowFullScreenExclusive ? VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT : VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT); #endif