mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Renderer: Fix throttle-disable (TAB) hotkey when vsync is enabled
This commit is contained in:
@ -735,7 +735,7 @@ void Renderer::OnConfigChanged(u32 bits)
|
||||
if (m_swap_chain && bits & CONFIG_CHANGE_BIT_VSYNC)
|
||||
{
|
||||
g_command_buffer_mgr->WaitForGPUIdle();
|
||||
m_swap_chain->SetVSync(g_ActiveConfig.IsVSync());
|
||||
m_swap_chain->SetVSync(g_ActiveConfig.bVSyncActive);
|
||||
}
|
||||
|
||||
// For quad-buffered stereo we need to change the layer count, so recreate the swap chain.
|
||||
|
@ -213,8 +213,8 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
||||
std::unique_ptr<SwapChain> swap_chain;
|
||||
if (surface != VK_NULL_HANDLE)
|
||||
{
|
||||
swap_chain =
|
||||
SwapChain::Create(wsi.display_connection, wsi.render_surface, surface, g_Config.IsVSync());
|
||||
swap_chain = SwapChain::Create(wsi.display_connection, wsi.render_surface, surface,
|
||||
g_ActiveConfig.bVSyncActive);
|
||||
if (!swap_chain)
|
||||
{
|
||||
PanicAlert("Failed to create Vulkan swap chain.");
|
||||
|
Reference in New Issue
Block a user