Add a missing Invalidate() call in ~TextureCache(). Fixes a regression from 8bed27a3d1 causing textures to load improperly when a game is run two times in the same Dolphin instance

This commit is contained in:
Pierre Bourdon 2012-06-27 20:19:04 +02:00
parent 05ae006e18
commit b27d8ff0d6
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ void TextureCache::Invalidate()
TextureCache::~TextureCache()
{
Invalidate();
if (temp)
{
FreeAlignedMemory(temp);