Fix dashboard black screen with backbuffer hack by always scaling viewport for backbuffer hack on the default render target

This commit is contained in:
Luke Usher 2019-07-03 08:31:34 +01:00
parent 196f1a74fd
commit bd3dccf3f6
1 changed files with 3 additions and 5 deletions

View File

@ -3236,12 +3236,10 @@ VOID WINAPI XTL::EMUPATCH(D3DDevice_SetViewport)
}
// Store the updated viewport data ready to pass to host SetViewPort
// Again, we can only do this when the host backbuffer hack is disabled, otherwise, we break
if (!g_DirectHostBackBufferAccess && g_pXboxRenderTarget != g_XboxBackBufferSurface) {
HostViewPort = XboxViewPort;
}
HostViewPort = XboxViewPort;
if (g_ScaleViewport) {
// We *must* scale the viewport when using the DirectHostBackBuffert hack for the backbuffer render target
if (g_ScaleViewport || (g_DirectHostBackBufferAccess && g_pXboxRenderTarget == g_XboxBackBufferSurface)) {
// Get current host render target dimensions
DWORD HostRenderTarget_Width;
DWORD HostRenderTarget_Height;