summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/EfbCopy.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2014-02-02 01:00:19 +1300
committerTony Wasserka <NeoBrainX@gmail.com>2014-03-01 18:45:24 +0100
commit17231418ef79e9e2d5fcc21bbf704848fa2f22ab (patch)
treee145324b0dea5a3809cec0b03bf1f21d25f6cdfd /Source/Core/VideoBackends/Software/EfbCopy.cpp
parent0942bdae1c6e9d841545a9f4934a094044d9c6bb (diff)
videosoftware: Added hack to bypass xfb just so fifoplayer works.
Fifoplayer depends on the old behaviour of videosoftware (and the other hardware backends in non virtual/real xfb modes) where the framebuffer gets rendered directly to the screen. Really fifoplayer should call BeginFrame/EndFrame when it finished rendering a frame, but adding this hack back in is simpler.
Diffstat (limited to 'Source/Core/VideoBackends/Software/EfbCopy.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/EfbCopy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/EfbCopy.cpp b/Source/Core/VideoBackends/Software/EfbCopy.cpp
index b800ba8ee2..0b3181fab7 100644
--- a/Source/Core/VideoBackends/Software/EfbCopy.cpp
+++ b/Source/Core/VideoBackends/Software/EfbCopy.cpp
@@ -45,6 +45,10 @@ namespace EfbCopy
EfbInterface::BypassXFB(colorTexture, fbWidth, fbHeight, sourceRc, Gamma);
SWRenderer::swapColorTexture(); // Tell SWRenderer we are now finished with it.
+
+ // And since fifo player is broken and never calls BeginFrame/EndFrame
+ // We will do this swap now.
+ SWRenderer::Swap(fbWidth, fbHeight);
}
}
}