From 72cd6fb135237d604e6586a14762723300eabbca Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Sat, 10 Mar 2018 21:54:54 +0000 Subject: [PATCH] Fix a regression where some FMVs stopped rendering after D3D8to9 was introduced. (Test case: xonlinedash 4920) --- src/CxbxKrnl/EmuD3D8.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 940d52746..54ee7cd59 100755 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -4864,8 +4864,11 @@ VOID WINAPI XTL::EMUPATCH(D3DDevice_UpdateOverlay) // Update overlay if present was not called since the last call to // EmuD3DDevice_UpdateOverlay. - if(g_bHackUpdateSoftwareOverlay) + if (g_bHackUpdateSoftwareOverlay) { + g_pD3DDevice8->EndScene(); g_pD3DDevice8->Present(0, 0, 0, 0); + g_pD3DDevice8->BeginScene(); + } g_bHackUpdateSoftwareOverlay = TRUE; }