mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
AVIDump: Add a struct for the state.
So AddFrame use no global state and can be threaded well.
This commit is contained in:
parent
dad5041737
commit
be29090aae
9 changed files with 44 additions and 18 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue