diff options
| author | booto <remornicus@gmail.com> | 2015-07-07 21:09:25 +0800 |
|---|---|---|
| committer | booto <remornicus@gmail.com> | 2015-07-25 01:52:12 +0800 |
| commit | 2e28ed3291bc531ba5d0cd4057aa9cefdbf128be (patch) | |
| tree | 670a913b5e6a6a3cddb7d325a1b3f6a51108cb08 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 9e4dae4a036fdc2f0a78e04a4215cd24c5c3ca0f (diff) | |
Video: respect stride of efb copies to xfb
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index a688c86792..cd98f5dbf0 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -112,22 +112,22 @@ Renderer::~Renderer() #endif } -void Renderer::RenderToXFB(u32 xfbAddr, const EFBRectangle& sourceRc, u32 fbWidth, u32 fbHeight, float Gamma) +void Renderer::RenderToXFB(u32 xfbAddr, const EFBRectangle& sourceRc, u32 fbStride, u32 fbHeight, float Gamma) { CheckFifoRecording(); - if (!fbWidth || !fbHeight) + if (!fbStride || !fbHeight) return; XFBWrited = true; if (g_ActiveConfig.bUseXFB) { - FramebufferManagerBase::CopyToXFB(xfbAddr, fbWidth, fbHeight, sourceRc, Gamma); + FramebufferManagerBase::CopyToXFB(xfbAddr, fbStride, fbHeight, sourceRc, Gamma); } else { - Swap(xfbAddr, fbWidth, fbWidth, fbHeight, sourceRc, Gamma); + Swap(xfbAddr, sourceRc.GetWidth(), fbStride, fbHeight, sourceRc, Gamma); } } |
