TextureCache: Fix a possible crash when partial updating palette textures

This commit is contained in:
Stenzek 2019-01-19 23:32:40 +10:00
parent 84bcbef944
commit 1070192165
1 changed files with 2 additions and 1 deletions

View File

@ -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
{