diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-29 22:29:39 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-29 22:29:39 +0200 |
commit | 3f3c3ca5f96fd5742524703f20b531338fa2e5f7 (patch) | |
tree | 8d1cbe2d6c6c565cd239aaddf7bb5f97b4aba09f /src/video_core/renderer_opengl | |
parent | texture_cache: Correct variable naming. (diff) | |
download | yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.tar yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.tar.gz yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.tar.bz2 yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.tar.lz yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.tar.xz yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.tar.zst yuzu-3f3c3ca5f96fd5742524703f20b531338fa2e5f7.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 5 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 15 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 672f26f37..97014a676 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -236,10 +236,7 @@ CachedSurface::CachedSurface(const GPUVAddr gpu_addr, const SurfaceParams& param true); } -CachedSurface::~CachedSurface() { - views.clear(); - main_view = nullptr; -} +CachedSurface::~CachedSurface() = default; void CachedSurface::DownloadTexture(std::vector<u8>& staging_buffer) { MICROPROFILE_SCOPE(OpenGL_Texture_Download); diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 8da81dba3..d4c6e9a30 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -89,21 +89,6 @@ public: return surface.GetSurfaceParams(); } - u32 GetWidth() const { - const auto& owner_params = GetSurfaceParams(); - return owner_params.GetMipWidth(params.base_level); - } - - u32 GetHeight() const { - const auto& owner_params = GetSurfaceParams(); - return owner_params.GetMipHeight(params.base_level); - } - - u32 GetDepth() const { - const auto& owner_params = GetSurfaceParams(); - return owner_params.GetMipDepth(params.base_level); - } - void ApplySwizzle(Tegra::Texture::SwizzleSource x_source, Tegra::Texture::SwizzleSource y_source, Tegra::Texture::SwizzleSource z_source, |