summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index a5ff0081c5..a210be3bc3 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -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);