TextureCacheBase: Fix possible crash on shutdown with deferred EFB copies

This commit is contained in:
Stenzek 2019-03-17 16:41:50 +10:00
parent 427dd45151
commit 087b11e780

View File

@ -96,6 +96,9 @@ TextureCacheBase::TextureCacheBase()
TextureCacheBase::~TextureCacheBase()
{
// Clear pending EFB copies first, so we don't try to flush them.
m_pending_efb_copies.clear();
HiresTexture::Shutdown();
Invalidate();
Common::FreeAlignedMemory(temp);