diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-16 22:51:53 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-10-16 22:51:53 +0200 |
commit | 91602de7f27e391c8e322a2670ef9d50a64f7517 (patch) | |
tree | 82338c004e99032bf195b173f0c0ea7ed34c4f02 /src/video_core/renderer_opengl/gl_buffer_cache.h | |
parent | gl_rasterizer_cache: Refactor to only call GetRegionEnd on surface creation. (diff) | |
download | yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.gz yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.bz2 yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.lz yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.xz yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.tar.zst yuzu-91602de7f27e391c8e322a2670ef9d50a64f7517.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_buffer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_buffer_cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_buffer_cache.h b/src/video_core/renderer_opengl/gl_buffer_cache.h index b389ca684..be29dc8be 100644 --- a/src/video_core/renderer_opengl/gl_buffer_cache.h +++ b/src/video_core/renderer_opengl/gl_buffer_cache.h @@ -15,17 +15,17 @@ namespace OpenGL { -struct CachedBufferEntry final { - VAddr GetAddr() const { +struct CachedBufferEntry final : public RasterizerCacheObject { + VAddr GetAddr() const override { return addr; } - std::size_t GetSizeInBytes() const { + std::size_t GetSizeInBytes() const override { return size; } // We do not have to flush this cache as things in it are never modified by us. - void Flush() {} + void Flush() override {} VAddr addr; std::size_t size; |