summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-01-19 23:32:40 +1000
committerStenzek <stenzek@gmail.com>2019-01-19 23:38:02 +1000
commit10701921654c8990e42e3e944c422d94c399099c (patch)
treee3c0b68f8a2fc1f55535b0f368d25b30f4883cb1 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent84bcbef944669a93bfe2905f1c7eb68bda7c9d4e (diff)
TextureCache: Fix a possible crash when partial updating palette textures
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp3
1 files changed, 2 insertions, 1 deletions
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
{