From 10701921654c8990e42e3e944c422d94c399099c Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 19 Jan 2019 23:32:40 +1000 Subject: [PATCH] TextureCache: Fix a possible crash when partial updating palette textures --- Source/Core/VideoCommon/TextureCacheBase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index f31cac5364..a42438e0b1 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -429,7 +429,8 @@ TextureCacheBase::DoPartialTextureUpdates(TCacheEntry* entry_to_update, u8* pale { // Remove the temporary converted texture, it won't be used anywhere else // TODO: It would be nice to convert and copy in one step, but this code path isn't common - InvalidateTexture(GetTexCacheIter(entry)); + iter.first = InvalidateTexture(iter.first); + continue; } else {