summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2012-06-27 20:19:04 +0200
committerPierre Bourdon <delroth@gmail.com>2012-06-27 20:20:28 +0200
commitb27d8ff0d6ce8c96c02a00b6bed1d4bb203fb7e8 (patch)
treeafab54cc7e68fd763a04f8541cffb4444be61433 /Source/Core/VideoCommon/Src/TextureCacheBase.cpp
parent05ae006e18002f8f1a494566d8f0046f0395147b (diff)
Add a missing Invalidate() call in ~TextureCache(). Fixes a regression from 8bed27a3d1e3 causing textures to load improperly when a game is run two times in the same Dolphin instance
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
index e9c2dbe9f3..a5c390df3d 100644
--- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
@@ -74,6 +74,7 @@ void TextureCache::Invalidate()
TextureCache::~TextureCache()
{
+ Invalidate();
if (temp)
{
FreeAlignedMemory(temp);