diff options
| author | Jules Blok <jules.blok@gmail.com> | 2015-06-24 19:27:08 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2015-06-24 19:27:08 +0200 |
| commit | 6274cdb478ddd3aa473df78b0b8c154795feb48a (patch) | |
| tree | 83b40a3e959d6c8b3764896ab449475ef9d0713e /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 6d273f6119cf8eea60d75b3258786409e2de937c (diff) | |
| parent | 829fc3dc2d72e5a7b387c0e8f5dad73384431d10 (diff) | |
Merge pull request #2655 from mimimi085181/texturecache-iterator-fix
Quick fix for an invalid iterator
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 6ca71d037c..af21636965 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -933,16 +933,16 @@ TextureCache::TCacheEntryBase* TextureCache::AllocateTexture(const TCacheEntryCo INCSTAT(stats.numTexturesCreated); } - entry->textures_by_hash_iter = textures_by_address.end(); + entry->textures_by_hash_iter = textures_by_hash.end(); return entry; } TextureCache::TexCache::iterator TextureCache::RemoveTextureFromCache(TexCache::iterator iter) { - if (iter->second->textures_by_hash_iter != textures_by_address.end()) + if (iter->second->textures_by_hash_iter != textures_by_hash.end()) { textures_by_hash.erase(iter->second->textures_by_hash_iter); - iter->second->textures_by_hash_iter = textures_by_address.end(); + iter->second->textures_by_hash_iter = textures_by_hash.end(); } FreeTexture(iter->second); |
