From 4964fc87ae15600252cea8a07df5799e91c11875 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 29 Sep 2017 00:31:08 -0500 Subject: Video Backends: Remove the right of the xfb region for games where the VI stride does not match the VI width --- Source/Core/VideoBackends/D3D/Render.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoBackends/D3D/Render.cpp') diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 82e5772b15..3f5fce3d10 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -608,7 +608,7 @@ void Renderer::SetBlendingState(const BlendingState& state) } // This function has the final picture. We adjust the aspect ratio here. -void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ticks, float Gamma) +void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& xfb_region, u64 ticks, float Gamma) { ResetAPIState(); @@ -624,9 +624,8 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ti // activate linear filtering for the buffer copies D3D::SetLinearCopySampler(); auto* xfb_texture = static_cast(texture); - TargetRectangle source_rc = xfb_texture->GetConfig().GetRect(); - BlitScreen(source_rc, targetRc, xfb_texture->GetRawTexIdentifier(), + BlitScreen(xfb_region, targetRc, xfb_texture->GetRawTexIdentifier(), xfb_texture->GetConfig().width, xfb_texture->GetConfig().height, Gamma); // Reset viewport for drawing text -- cgit v1.2.3