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/gl_texture_cache.cpp | |
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 '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 5 |
1 files changed, 1 insertions, 4 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); |