mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
AVIDump: Add a struct for the state.
So AddFrame use no global state and can be threaded well.
This commit is contained in:
@ -747,10 +747,11 @@ bool Renderer::DrawFrameDump(const EFBRectangle& rc, u32 xfb_addr,
|
||||
|
||||
void Renderer::DumpFrame(u64 ticks)
|
||||
{
|
||||
AVIDump::Frame state = AVIDump::FetchState(ticks);
|
||||
DumpFrameData(reinterpret_cast<const u8*>(m_frame_dump_readback_texture->GetMapPointer()),
|
||||
static_cast<int>(m_frame_dump_render_texture->GetWidth()),
|
||||
static_cast<int>(m_frame_dump_render_texture->GetHeight()),
|
||||
static_cast<int>(m_frame_dump_readback_texture->GetRowStride()), ticks);
|
||||
static_cast<int>(m_frame_dump_readback_texture->GetRowStride()), state);
|
||||
FinishFrameData();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user