diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-10-11 11:29:19 +0200 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-10-11 11:29:19 +0200 |
commit | 8c769b71a17c531530d720aeacf859f97fa4c5e2 (patch) | |
tree | dfe01251b1fdcb15ff12105a97ae941a291a5b0f /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | Merge pull request #11716 from Squall-Leonhart/Z327444 (diff) | |
download | yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.tar yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.tar.gz yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.tar.bz2 yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.tar.lz yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.tar.xz yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.tar.zst yuzu-8c769b71a17c531530d720aeacf859f97fa4c5e2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 00ab47268..1b8bb9662 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1530,15 +1530,15 @@ bool Image::IsRescaled() const noexcept { } bool Image::ScaleUp(bool ignore) { + const auto& resolution = runtime->resolution; + if (!resolution.active) { + return false; + } if (True(flags & ImageFlagBits::Rescaled)) { return false; } ASSERT(info.type != ImageType::Linear); flags |= ImageFlagBits::Rescaled; - const auto& resolution = runtime->resolution; - if (!resolution.active) { - return false; - } has_scaled = true; if (!scaled_image) { const bool is_2d = info.type == ImageType::e2D; @@ -1567,15 +1567,15 @@ bool Image::ScaleUp(bool ignore) { } bool Image::ScaleDown(bool ignore) { + const auto& resolution = runtime->resolution; + if (!resolution.active) { + return false; + } if (False(flags & ImageFlagBits::Rescaled)) { return false; } ASSERT(info.type != ImageType::Linear); flags &= ~ImageFlagBits::Rescaled; - const auto& resolution = runtime->resolution; - if (!resolution.active) { - return false; - } current_image = *original_image; if (ignore) { return true; |