diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-05-07 17:25:29 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-05-07 18:33:10 +0200 |
commit | 3a08c3207b726a71e15784571e7c4677d25e3b3f (patch) | |
tree | 5aabe9038ac94cc3e02032c39ccb33bfce9b49b2 /src | |
parent | Merge pull request #2451 from lioncash/travis (diff) | |
download | yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.tar yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.tar.gz yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.tar.bz2 yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.tar.lz yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.tar.xz yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.tar.zst yuzu-3a08c3207b726a71e15784571e7c4677d25e3b3f.zip |
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 291772186..185b6f414 100644 --- a/src/video_core/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache.h @@ -147,8 +147,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 |