GS/DX12: Fix recreating swapchain failing on vsync mode changes

This commit is contained in:
TheLastRar
2026-01-27 23:57:11 +00:00
committed by Ty
parent 4e38698cdb
commit bc8151d2a4

View File

@@ -788,6 +788,7 @@ void GSDevice12::SetVSyncMode(GSVSyncMode mode, bool allow_present_throttle)
if (GetSwapChainBufferCount() != old_buffer_count)
{
ExecuteCommandList(true);
DestroySwapChain();
if (!CreateSwapChain())
pxFailRel("Failed to recreate swap chain after vsync change.");