diff options
| author | degasus <wickmarkus@web.de> | 2016-11-04 18:19:35 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-11-04 18:35:42 +0100 |
| commit | be29090aaea5482234c06e1220a22797aad0b114 (patch) | |
| tree | 436e4b6a686f6f64ad5fbf5eeeb9a25882049dce /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | dad5041737053a75c58123c637c28c350d99dd08 (diff) | |
AVIDump: Add a struct for the state.
So AddFrame use no global state and can be threaded well.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 013ee7f07d..65f716ba9e 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -667,7 +667,7 @@ bool Renderer::IsFrameDumping() return false; } -void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, u64 ticks, +void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, const AVIDump::Frame& state, bool swap_upside_down) { if (w == 0 || h == 0) @@ -701,7 +701,7 @@ void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, u64 ticks } if (m_AVI_dumping) { - AVIDump::AddFrame(m_frame_data.data(), w, h, stride, ticks); + AVIDump::AddFrame(m_frame_data.data(), w, h, stride, state); } m_last_frame_dumped = true; |
