From d0dddb3e9d79c423a72144b66e290e170cd29432 Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 21 Mar 2019 21:41:14 -0400 Subject: Revert "Devirtualize Register/Unregister and use a wrapper instead." - Fixes graphical issues from transitions in Super Mario Odyssey. --- src/video_core/rasterizer_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video_core/rasterizer_cache.h') diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h index ecd9986a0..9fc9f3056 100644 --- a/src/video_core/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache.h @@ -132,7 +132,7 @@ protected: } /// Register an object into the cache - void Register(const T& object) { + virtual void Register(const T& object) { std::lock_guard lock{mutex}; object->SetIsRegistered(true); @@ -142,7 +142,7 @@ protected: } /// Unregisters an object from the cache - void Unregister(const T& object) { + virtual void Unregister(const T& object) { std::lock_guard lock{mutex}; object->SetIsRegistered(false); -- cgit v1.2.3