diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 17:00:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 17:00:44 +0200 |
commit | f8b1e533699093f2eb4a013ce35a946dcdf0790c (patch) | |
tree | a49ff161d4b12d73a524cce823e24d0bc2215b0f /src/video_core | |
parent | Merge pull request #2497 from lioncash/shader-ir (diff) | |
parent | Correct possible error on Rasterizer Caches (diff) | |
download | yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.gz yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.bz2 yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.lz yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.xz yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.zst yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.zip |
Diffstat (limited to 'src/video_core')
-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 |