diff options
Diffstat (limited to 'src/video_core/rasterizer_cache.h')
| -rw-r--r-- | src/video_core/rasterizer_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h index b239dff84..a7bcf26fb 100644 --- a/src/video_core/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache.h | |||
| @@ -104,7 +104,7 @@ protected: | |||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | /// Register an object into the cache | 106 | /// Register an object into the cache |
| 107 | virtual void Register(const T& object) { | 107 | void Register(const T& object) { |
| 108 | object->SetIsRegistered(true); | 108 | object->SetIsRegistered(true); |
| 109 | interval_cache.add({GetInterval(object), ObjectSet{object}}); | 109 | interval_cache.add({GetInterval(object), ObjectSet{object}}); |
| 110 | map_cache.insert({object->GetAddr(), object}); | 110 | map_cache.insert({object->GetAddr(), object}); |
| @@ -112,7 +112,7 @@ protected: | |||
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | /// Unregisters an object from the cache | 114 | /// Unregisters an object from the cache |
| 115 | virtual void Unregister(const T& object) { | 115 | void Unregister(const T& object) { |
| 116 | object->SetIsRegistered(false); | 116 | object->SetIsRegistered(false); |
| 117 | rasterizer.UpdatePagesCachedCount(object->GetAddr(), object->GetSizeInBytes(), -1); | 117 | rasterizer.UpdatePagesCachedCount(object->GetAddr(), object->GetSizeInBytes(), -1); |
| 118 | // Only flush if use_accurate_gpu_emulation is enabled, as it incurs a performance hit | 118 | // Only flush if use_accurate_gpu_emulation is enabled, as it incurs a performance hit |