diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-22 23:40:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-22 23:40:53 +0100 |
commit | a7157fe27de5fc05037ec19e69f14064bd9696da (patch) | |
tree | e29237d96d66d10ce42eb156ee872583919e6f78 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #2234 from lioncash/mutex (diff) | |
parent | Revert "Devirtualize Register/Unregister and use a wrapper instead." (diff) | |
download | yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.tar yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.tar.gz yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.tar.bz2 yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.tar.lz yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.tar.xz yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.tar.zst yuzu-a7157fe27de5fc05037ec19e69f14064bd9696da.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); } }; |