diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-08-07 04:32:17 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:29 +0100 |
commit | d7c97921696486a95aaaf5c805b9fcc12230de77 (patch) | |
tree | 404caea05eabc2c58b5aa686e7817ba32a01192c /src/video_core/texture_cache/texture_cache.h | |
parent | RescalingPass: Agregate pixels on texelFetch while on Fragment Shader (diff) | |
download | yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.tar yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.tar.gz yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.tar.bz2 yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.tar.lz yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.tar.xz yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.tar.zst yuzu-d7c97921696486a95aaaf5c805b9fcc12230de77.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 2de439889..764984546 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -631,6 +631,9 @@ bool TextureCache<P>::IsRescaling() const noexcept { template <class P> bool TextureCache<P>::IsRescaling(const ImageViewBase& image_view) const noexcept { + if (image_view.type == ImageViewType::Buffer) { + return false; + } const ImageBase& image = slot_images[image_view.image_id]; return True(image.flags & ImageFlagBits::Rescaled); } |