diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-22 02:41:14 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2019-03-22 02:56:56 +0100 |
commit | d0dddb3e9d79c423a72144b66e290e170cd29432 (patch) | |
tree | 900b609da5e97a99ade548832d717a1c3ea86885 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #2275 from lioncash/memflags (diff) | |
download | yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.tar yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.tar.gz yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.tar.bz2 yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.tar.lz yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.tar.xz yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.tar.zst yuzu-d0dddb3e9d79c423a72144b66e290e170cd29432.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 9366f47f2..c919dd29b 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -533,13 +533,17 @@ private: return nullptr; } + void Register(const Surface& object) { + RasterizerCache<Surface>::Register(object); + } + /// Unregisters an object from the cache - void UnregisterSurface(const Surface& object) { + void Unregister(const Surface& object) { if (object->IsReinterpreted()) { auto interval = GetReinterpretInterval(object); reinterpreted_surfaces.erase(interval); } - Unregister(object); + RasterizerCache<Surface>::Unregister(object); } }; |