diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-06-20 17:07:17 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-06-20 19:11:41 +0200 |
commit | 569a1962c093319c89079c52b5cb6fff139c8174 (patch) | |
tree | 22d7b6fd6233ecae09b55eb003616aa0db0e2073 /src/video_core/renderer_opengl | |
parent | Reaper: Upgrade label from unsafe to experimental as no regressions are known now. (diff) | |
download | yuzu-569a1962c093319c89079c52b5cb6fff139c8174.tar yuzu-569a1962c093319c89079c52b5cb6fff139c8174.tar.gz yuzu-569a1962c093319c89079c52b5cb6fff139c8174.tar.bz2 yuzu-569a1962c093319c89079c52b5cb6fff139c8174.tar.lz yuzu-569a1962c093319c89079c52b5cb6fff139c8174.tar.xz yuzu-569a1962c093319c89079c52b5cb6fff139c8174.tar.zst yuzu-569a1962c093319c89079c52b5cb6fff139c8174.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 2 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 9b4038615..23948feed 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -737,6 +737,8 @@ Image::Image(TextureCacheRuntime& runtime, const VideoCommon::ImageInfo& info_, } } +Image::~Image() = default; + void Image::UploadMemory(const ImageBufferMap& map, std::span<const VideoCommon::BufferImageCopy> copies) { glBindBuffer(GL_PIXEL_UNPACK_BUFFER, map.buffer); diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 12c619aca..25fe61566 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -143,6 +143,14 @@ public: explicit Image(TextureCacheRuntime&, const VideoCommon::ImageInfo& info, GPUVAddr gpu_addr, VAddr cpu_addr); + ~Image(); + + Image(const Image&) = delete; + Image& operator=(const Image&) = delete; + + Image(Image&&) = default; + Image& operator=(Image&&) = default; + void UploadMemory(const ImageBufferMap& map, std::span<const VideoCommon::BufferImageCopy> copies); |