Merge pull request #980 from LukeUsher/master

Fix a regression where some FMVs stopped rendering after D3D8to9 was introduced
This commit is contained in:
Luke Usher 2018-03-10 21:55:58 +00:00 committed by GitHub
commit b8c5808a23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -4864,8 +4864,11 @@ VOID WINAPI XTL::EMUPATCH(D3DDevice_UpdateOverlay)
// Update overlay if present was not called since the last call to // Update overlay if present was not called since the last call to
// EmuD3DDevice_UpdateOverlay. // EmuD3DDevice_UpdateOverlay.
if(g_bHackUpdateSoftwareOverlay) if (g_bHackUpdateSoftwareOverlay) {
g_pD3DDevice8->EndScene();
g_pD3DDevice8->Present(0, 0, 0, 0); g_pD3DDevice8->Present(0, 0, 0, 0);
g_pD3DDevice8->BeginScene();
}
g_bHackUpdateSoftwareOverlay = TRUE; g_bHackUpdateSoftwareOverlay = TRUE;
} }