mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
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.
This commit is contained in:
parent
0942bdae1c
commit
17231418ef
2 changed files with 11 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue