From b27d8ff0d6ce8c96c02a00b6bed1d4bb203fb7e8 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 27 Jun 2012 20:19:04 +0200 Subject: [PATCH] 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 --- Source/Core/VideoCommon/Src/TextureCacheBase.cpp | 1 + 1 file changed, 1 insertion(+) 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);