diff options
| author | Stenzek <stenzek@gmail.com> | 2019-03-17 16:41:50 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-03-29 20:54:44 +1000 |
| commit | 087b11e780a89928ae4f6d2229eb3e79f4f0689b (patch) | |
| tree | 0edc9a340390206090dd91fa5a1907bb698ba9a3 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 427dd45151eddc920d681c4711a3cdbd7e363f82 (diff) | |
TextureCacheBase: Fix possible crash on shutdown with deferred EFB copies
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 3 |
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); |
