Renderer: Fix crash on shutdown when frame dumping or taking screenshots

This commit is contained in:
Stenzek 2018-01-26 12:12:00 +10:00
parent 5ba18f642c
commit 3f197480ef

View File

@ -800,6 +800,9 @@ void Renderer::ShutdownFrameDumping()
m_frame_dump_start.Set();
if (m_frame_dump_thread.joinable())
m_frame_dump_thread.join();
m_frame_dump_render_texture.reset();
for (auto& tex : m_frame_dump_readback_textures)
tex.reset();
}
void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, const AVIDump::Frame& state)