summaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-08-02 14:25:52 -0400
committerGravatar GitHub2023-08-02 14:25:52 -0400
commitfca7d975fdbeb1c63677b80efc03920affee4b12 (patch)
treebbded6cf80886c6def87bae92cf6784340165de9 /src/video_core/textures/texture.cpp
parentMerge pull request #11204 from liamwhite/eds3-blend-amd (diff)
parentconfig(qt): Fix name of network category (diff)
downloadyuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.gz
yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.tar.xz
yuzu-fca7d975fdbeb1c63677b80efc03920affee4b12.zip
Merge pull request #10839 from lat9nq/pgc-plus
general: Reimplement per-game configurations
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 {
72 } 72 }
73 const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue(); 73 const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();
74 s32 added_anisotropic{}; 74 s32 added_anisotropic{};
75 if (anisotropic_settings == 0) { 75 if (anisotropic_settings == Settings::AnisotropyMode::Automatic) {
76 added_anisotropic = Settings::values.resolution_info.up_scale >> 76 added_anisotropic = Settings::values.resolution_info.up_scale >>
77 Settings::values.resolution_info.down_shift; 77 Settings::values.resolution_info.down_shift;
78 added_anisotropic = std::max(added_anisotropic - 1, 0); 78 added_anisotropic = std::max(added_anisotropic - 1, 0);
79 } else { 79 } else {
80 added_anisotropic = Settings::values.max_anisotropy.GetValue() - 1U; 80 added_anisotropic = static_cast<u32>(Settings::values.max_anisotropy.GetValue()) - 1U;
81 } 81 }
82 return static_cast<float>(1U << (max_anisotropy + added_anisotropic)); 82 return static_cast<float>(1U << (max_anisotropy + added_anisotropic));
83} 83}