summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2022-12-12 04:34:09 +0100
committerGitHub <noreply@github.com>2022-12-12 04:34:09 +0100
commit8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a (patch)
tree7f2519d9253b8715cca6734387c47eeef24ad8ae
parentMerge pull request #9419 from liamwhite/no-gl (diff)
parentvideo_core: fix off by one in anisotropic filtering amount (diff)
downloadyuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.tar
yuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.tar.gz
yuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.tar.bz2
yuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.tar.lz
yuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.tar.xz
yuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.tar.zst
yuzu-8ef9075b1bdc8e2cf26e08aa2d62e8661dc66d1a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/textures/texture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cpp
index b8327c88a..26649aebf 100644
--- a/src/video_core/textures/texture.cpp
+++ b/src/video_core/textures/texture.cpp
@@ -64,10 +64,11 @@ float TSCEntry::MaxAnisotropy() const noexcept {
return 1.0f;
}
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();
- u32 added_anisotropic{};
+ s32 added_anisotropic{};
if (anisotropic_settings == 0) {
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;
}