diff options
| author | JMC47 <JMC4789@gmail.com> | 2019-04-20 23:21:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-20 23:21:42 -0400 |
| commit | 18589e50ab44957f4955596ac238d900f28959c3 (patch) | |
| tree | 4b9e99f688bcd56cc0c5e0182fefadacbbaaa73b /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 4b1adab7856cb2dd28418a1d748a0e8cebf94a2f (diff) | |
| parent | b09a0e1a603732dc91856418f874ac8033790f57 (diff) | |
Merge pull request #7925 from stenzek/xfb-stride
TextureCache: Simplify XFB reconstruction
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index d7d80a1bfa..925619e797 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -312,14 +312,13 @@ static void BPWritten(const BPCmd& bp) if (g_ActiveConfig.bImmediateXFB) { // below div two to convert from bytes to pixels - it expects width, not stride - g_renderer->Swap(destAddr, destStride / 2, destStride / 2, height, srcRect, - CoreTiming::GetTicks()); + g_renderer->Swap(destAddr, destStride / 2, destStride, height, CoreTiming::GetTicks()); } else { if (FifoPlayer::GetInstance().IsRunningWithFakeVideoInterfaceUpdates()) { - VideoInterface::FakeVIUpdate(destAddr, srcRect.GetWidth(), height); + VideoInterface::FakeVIUpdate(destAddr, srcRect.GetWidth(), destStride, height); } } } |
