mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +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
|
@ -1455,8 +1455,9 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
|
|||
glReadPixels(flipped_trc.left, flipped_trc.bottom, flipped_trc.GetWidth(),
|
||||
flipped_trc.GetHeight(), GL_RGBA, GL_UNSIGNED_BYTE, image.data());
|
||||
|
||||
AVIDump::Frame state = AVIDump::FetchState(ticks);
|
||||
DumpFrameData(image.data(), flipped_trc.GetWidth(), flipped_trc.GetHeight(),
|
||||
flipped_trc.GetWidth() * 4, ticks, true);
|
||||
flipped_trc.GetWidth() * 4, state, true);
|
||||
FinishFrameData();
|
||||
}
|
||||
// Finish up the current frame, print some stats
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue