diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 16:00:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 16:00:44 +0100 |
commit | f8b1e533699093f2eb4a013ce35a946dcdf0790c (patch) | |
tree | a49ff161d4b12d73a524cce823e24d0bc2215b0f /src | |
parent | 2aebbe9bf9d9214fc746cd556e2e051a0f5d8121 (diff) | |
parent | 3a08c3207b726a71e15784571e7c4677d25e3b3f (diff) |
Merge pull request #2452 from FernandoS27/raster-cache-fix
Correct possible error on Rasterizer Caches
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/rasterizer_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h index f820f3ed9..0c4ea1494 100644 --- a/src/video_core/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache.h @@ -144,8 +144,9 @@ protected: object->SetIsRegistered(false); rasterizer.UpdatePagesCachedCount(object->GetCpuAddr(), object->GetSizeInBytes(), -1); + const CacheAddr addr = object->GetCacheAddr(); interval_cache.subtract({GetInterval(object), ObjectSet{object}}); - map_cache.erase(object->GetCacheAddr()); + map_cache.erase(addr); } /// Returns a ticks counter used for tracking when cached objects were last modified |