summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2015-07-26 20:52:29 +0200
committerMarkus Wick <markus@selfnet.de>2015-07-26 20:52:29 +0200
commit428e2ef9712f68ff6717d9d129f5696c05a77cfe (patch)
tree6525e14366152e263a011517b1bcbd82b562b08c /Source/Core/VideoCommon
parentdb42c7c3ba9689c2a385e4feee79fabfae5ce9ea (diff)
parent9d055ba5f2a720778ce1f669e647266170650277 (diff)
Merge pull request #2778 from booto/im-sorry-d3d
Video: Trying to fix D3D/XFB disabled regression
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp3
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);
}
}