From a747e15ac70570199b9a56da29f72076d0b7d16b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 22 Jul 2021 13:36:08 +1000 Subject: [PATCH] D3D12HostDisplay: Fix possible panic on fullscreen switch --- src/frontend-common/d3d12_host_display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend-common/d3d12_host_display.cpp b/src/frontend-common/d3d12_host_display.cpp index 2ace92f0d..b148f6234 100644 --- a/src/frontend-common/d3d12_host_display.cpp +++ b/src/frontend-common/d3d12_host_display.cpp @@ -545,6 +545,7 @@ bool D3D12HostDisplay::SetFullscreen(bool fullscreen, u32 width, u32 height, flo return true; } + g_d3d12_context->ExecuteCommandList(true); DestroySwapChainRTVs(); m_swap_chain.Reset();