diff options
| author | Stenzek <stenzek@gmail.com> | 2019-01-19 23:32:40 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-01-19 23:38:02 +1000 |
| commit | 10701921654c8990e42e3e944c422d94c399099c (patch) | |
| tree | e3c0b68f8a2fc1f55535b0f368d25b30f4883cb1 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 84bcbef944669a93bfe2905f1c7eb68bda7c9d4e (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.cpp | 3 |
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 { |
