diff options
| author | booto <remornicus@gmail.com> | 2015-07-26 00:59:00 +0800 |
|---|---|---|
| committer | booto <remornicus@gmail.com> | 2015-07-26 00:59:00 +0800 |
| commit | 9d055ba5f2a720778ce1f669e647266170650277 (patch) | |
| tree | ac56c3ab35e04b2a5ef7c7084060cf057aa0e602 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 3801f89125b63a29f2d817b2021f362768642fec (diff) | |
Video: Trying to fix D3D/XFB disabled regression
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index cd98f5dbf0..817213504a 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -127,7 +127,8 @@ void Renderer::RenderToXFB(u32 xfbAddr, const EFBRectangle& sourceRc, u32 fbStri } else { - Swap(xfbAddr, sourceRc.GetWidth(), fbStride, fbHeight, sourceRc, Gamma); + // below div two to convert from bytes to pixels - it expects width, not stride + Swap(xfbAddr, fbStride/2, fbStride/2, fbHeight, sourceRc, Gamma); } } |
