diff options
| author | 2019-05-19 16:00:44 +0100 | |
|---|---|---|
| committer | 2019-05-19 16:00:44 +0100 | |
| commit | f8b1e533699093f2eb4a013ce35a946dcdf0790c (patch) | |
| tree | a49ff161d4b12d73a524cce823e24d0bc2215b0f /src | |
| parent | Merge pull request #2497 from lioncash/shader-ir (diff) | |
| parent | Correct possible error on Rasterizer Caches (diff) | |
| download | yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.gz yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.tar.xz yuzu-f8b1e533699093f2eb4a013ce35a946dcdf0790c.zip | |
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: | |||
| 144 | 144 | ||
| 145 | object->SetIsRegistered(false); | 145 | object->SetIsRegistered(false); |
| 146 | rasterizer.UpdatePagesCachedCount(object->GetCpuAddr(), object->GetSizeInBytes(), -1); | 146 | rasterizer.UpdatePagesCachedCount(object->GetCpuAddr(), object->GetSizeInBytes(), -1); |
| 147 | const CacheAddr addr = object->GetCacheAddr(); | ||
| 147 | interval_cache.subtract({GetInterval(object), ObjectSet{object}}); | 148 | interval_cache.subtract({GetInterval(object), ObjectSet{object}}); |
| 148 | map_cache.erase(object->GetCacheAddr()); | 149 | map_cache.erase(addr); |
| 149 | } | 150 | } |
| 150 | 151 | ||
| 151 | /// Returns a ticks counter used for tracking when cached objects were last modified | 152 | /// Returns a ticks counter used for tracking when cached objects were last modified |