diff options
| author | Fog <christhecoolist@gmail.com> | 2014-10-12 23:53:10 -0400 |
|---|---|---|
| committer | Fog <christhecoolist@gmail.com> | 2014-10-12 23:56:16 -0400 |
| commit | 8d424b114ae98243744a118e44d38e0a40645682 (patch) | |
| tree | 504759d86a709c5181b8fc37daa10efc88558a9e /Source/Core/VideoBackends/OGL/Render.cpp | |
| parent | 26fc3c168a2f0ad9a1dde00d479591bd0d61174e (diff) | |
Move bDumpFrames to SConfig (and it's references)
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index 99dd6548be..e8e936b133 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -1366,10 +1366,10 @@ void Renderer::SetBlendMode(bool forceUpdate) static void DumpFrame(const std::vector<u8>& data, int w, int h) { #if defined(HAVE_LIBAV) || defined(_WIN32) - if (g_ActiveConfig.bDumpFrames && !data.empty()) - { - AVIDump::AddFrame(&data[0], w, h); - } + if (SConfig::GetInstance().m_DumpFrames && !data.empty()) + { + AVIDump::AddFrame(&data[0], w, h); + } #endif } @@ -1516,7 +1516,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co if (GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGL) { #if defined _WIN32 || defined HAVE_LIBAV - if (g_ActiveConfig.bDumpFrames) + if (SConfig::GetInstance().m_DumpFrames) { std::lock_guard<std::mutex> lk(s_criticalScreenshot); if (frame_data.empty() || w != flipped_trc.GetWidth() || @@ -1577,7 +1577,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co bLastFrameDumped = false; } #else - if (g_ActiveConfig.bDumpFrames) + if (SConfig::GetInstance().m_DumpFrames) { std::lock_guard<std::mutex> lk(s_criticalScreenshot); std::string movie_file_name; |
