From 5ebd1e215b29bdbf74317ea1b6cb19578db0e41a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 23 Jan 2016 23:20:13 -0500 Subject: Fifo: Make g_bSkipCurrentFrame a TU-local variable This is only ever queried, making it a global isn't necessary. --- Source/Core/VideoBackends/Software/DebugUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/DebugUtil.cpp') diff --git a/Source/Core/VideoBackends/Software/DebugUtil.cpp b/Source/Core/VideoBackends/Software/DebugUtil.cpp index e7f3089027..0e2b4e1934 100644 --- a/Source/Core/VideoBackends/Software/DebugUtil.cpp +++ b/Source/Core/VideoBackends/Software/DebugUtil.cpp @@ -191,7 +191,7 @@ void CopyTempBuffer(s16 x, s16 y, int bufferBase, int subBuffer, const char *nam void OnObjectBegin() { - if (!Fifo::g_bSkipCurrentFrame) + if (!Fifo::WillSkipCurrentFrame()) { if (g_ActiveConfig.bDumpTextures && stats.thisFrame.numDrawnObjects >= g_ActiveConfig.drawStart && stats.thisFrame.numDrawnObjects < g_ActiveConfig.drawEnd) DumpActiveTextures(); @@ -200,7 +200,7 @@ void OnObjectBegin() void OnObjectEnd() { - if (!Fifo::g_bSkipCurrentFrame) + if (!Fifo::WillSkipCurrentFrame()) { if (g_ActiveConfig.bDumpObjects && stats.thisFrame.numDrawnObjects >= g_ActiveConfig.drawStart && stats.thisFrame.numDrawnObjects < g_ActiveConfig.drawEnd) DumpEfb(StringFromFormat("%sobject%i.png", -- cgit v1.2.3