GS/DX12: Fix command list not flushing when in surfaceless mode.

This commit is contained in:
refractionpcsx2 2025-05-16 01:05:28 +01:00 committed by lightningterror
parent ae8808b86e
commit f90396bda4

View File

@ -1087,7 +1087,14 @@ GSDevice::PresentResult GSDevice12::BeginPresent(bool frame_skip)
return PresentResult::DeviceLost;
if (frame_skip || !m_swap_chain)
{
if (!m_swap_chain)
{
ExecuteCommandList(WaitType::None);
InvalidateCachedState();
}
return PresentResult::FrameSkipped;
}
// Check if we lost exclusive fullscreen. If so, notify the host, so it can switch to windowed mode.
// This might get called repeatedly if it takes a while to switch back, that's the host's problem.