diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-19 04:32:03 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:27 +0100 |
commit | ba18047e8d06584de0ce18cdbb303a6d9a8742aa (patch) | |
tree | 1c7c3cd54bc82de9d7a746ba1172f1fd013ab9b7 /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | ShaderDecompiler: Add initial support for rescaling. (diff) | |
download | yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.gz yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.bz2 yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.lz yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.xz yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.tar.zst yuzu-ba18047e8d06584de0ce18cdbb303a6d9a8742aa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 10 |
1 files changed, 6 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 1e594838f..cdd352aef 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -849,20 +849,22 @@ void Image::CopyImageToBuffer(const VideoCommon::BufferImageCopy& copy, size_t b } } -void Image::ScaleUp() { +bool Image::ScaleUp() { if (True(flags & ImageFlagBits::Rescaled)) { - return; + return false; } flags |= ImageFlagBits::Rescaled; UNIMPLEMENTED(); + return true; } -void Image::ScaleDown() { +bool Image::ScaleDown() { if (False(flags & ImageFlagBits::Rescaled)) { - return; + return false; } flags &= ~ImageFlagBits::Rescaled; UNIMPLEMENTED(); + return true; } ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewInfo& info, |