GS SW: Adjust order SW is destroyed, fixes GS Dump crash

This commit is contained in:
refractionpcsx2 2022-01-06 07:15:01 +00:00
parent 0312e9026d
commit 86309bd837
1 changed files with 2 additions and 2 deletions

View File

@ -70,6 +70,8 @@ GSRendererSW::GSRendererSW(int threads)
GSRendererSW::~GSRendererSW()
{
// Need to destroy worker queue first to stop any pending thread work
delete m_rl;
delete m_tc;
for (GSTexture* tex : m_texture)
@ -77,8 +79,6 @@ GSRendererSW::~GSRendererSW()
delete tex;
}
delete m_rl;
_aligned_free(m_output);
}