Skip to content
Snippets Groups Projects
Unverified Commit f8b1e533 authored by Hexagon12's avatar Hexagon12 Committed by GitHub
Browse files

Merge pull request #2452 from FernandoS27/raster-cache-fix

Correct possible error on Rasterizer Caches
parents 2aebbe9b 3a08c320
No related branches found
No related tags found
No related merge requests found
...@@ -144,8 +144,9 @@ protected: ...@@ -144,8 +144,9 @@ protected:
object->SetIsRegistered(false); object->SetIsRegistered(false);
rasterizer.UpdatePagesCachedCount(object->GetCpuAddr(), object->GetSizeInBytes(), -1); rasterizer.UpdatePagesCachedCount(object->GetCpuAddr(), object->GetSizeInBytes(), -1);
const CacheAddr addr = object->GetCacheAddr();
interval_cache.subtract({GetInterval(object), ObjectSet{object}}); 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 /// Returns a ticks counter used for tracking when cached objects were last modified
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment