Fifo: Make g_bSkipCurrentFrame a TU-local variable

This is only ever queried, making it a global isn't necessary.
This commit is contained in:
Lioncash
2016-01-23 23:20:13 -05:00
parent 48e7e5b72e
commit 5ebd1e215b
9 changed files with 19 additions and 14 deletions

View File

@ -1260,7 +1260,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
}
static int w = 0, h = 0;
if (Fifo::g_bSkipCurrentFrame || (!XFBWrited && !g_ActiveConfig.RealXFBEnabled()) || !fbWidth || !fbHeight)
if (Fifo::WillSkipCurrentFrame() || (!XFBWrited && !g_ActiveConfig.RealXFBEnabled()) || !fbWidth || !fbHeight)
{
DumpFrame(frame_data, w, h);
Core::Callback_VideoCopiedToXFB(false);