summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/texture.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-05-07 15:48:26 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:07 +0200
commita007ac6b9ccc23861f5a5c6967d535220ed794b0 (patch)
tree934c66c124dd77a17fae07ae919335efb1107255 /src/video_core/textures/texture.cpp
parentconfigure_per_game: Rename group to tab_group (diff)
downloadyuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.tar
yuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.tar.gz
yuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.tar.bz2
yuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.tar.lz
yuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.tar.xz
yuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.tar.zst
yuzu-a007ac6b9ccc23861f5a5c6967d535220ed794b0.zip
Diffstat (limited to 'src/video_core/textures/texture.cpp')
-rw-r--r--src/video_core/textures/texture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cpp
index d8b88d9bc..39c08b5ae 100644
--- a/src/video_core/textures/texture.cpp
+++ b/src/video_core/textures/texture.cpp
@@ -72,12 +72,12 @@ float TSCEntry::MaxAnisotropy() const noexcept {
}
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();
s32 added_anisotropic{};
- if (anisotropic_settings == 0) {
+ if (anisotropic_settings == Settings::AnisotropyMode::Automatic) {
added_anisotropic = Settings::values.resolution_info.up_scale >>
Settings::values.resolution_info.down_shift;
added_anisotropic = std::max(added_anisotropic - 1, 0);
} else {
- added_anisotropic = Settings::values.max_anisotropy.GetValue() - 1U;
+ added_anisotropic = static_cast<u32>(Settings::values.max_anisotropy.GetValue()) - 1U;
}
return static_cast<float>(1U << (max_anisotropy + added_anisotropic));
}