From b5b6a15e4029b7887cc96f535663c15cab768c02 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 7 Mar 2020 12:37:55 +1000 Subject: [PATCH] GPU/D3D11: Always flush render before presenting --- src/core/gpu_hw_d3d11.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/gpu_hw_d3d11.cpp b/src/core/gpu_hw_d3d11.cpp index a823b7e6f..14494f4a0 100644 --- a/src/core/gpu_hw_d3d11.cpp +++ b/src/core/gpu_hw_d3d11.cpp @@ -99,6 +99,9 @@ void GPU_HW_D3D11::ResetGraphicsAPIState() GPU_HW::ResetGraphicsAPIState(); m_context->GSSetShader(nullptr, nullptr, 0); + + // In D3D11 we can't leave a buffer mapped across a Present() call. + FlushRender(); } void GPU_HW_D3D11::RestoreGraphicsAPIState()