summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-12-11 02:54:45 +0100
committerLiam <byteslice@airmail.cc>2022-12-11 02:54:45 +0100
commit456322dde6682c679c377b157c77ded178367586 (patch)
tree224d26cc6d12c62f40e9832fdd02ec1b06d98ee0 /src/video_core
parentMerge pull request #9417 from liamwhite/debug-assert (diff)
downloadyuzu-456322dde6682c679c377b157c77ded178367586.tar
yuzu-456322dde6682c679c377b157c77ded178367586.tar.gz
yuzu-456322dde6682c679c377b157c77ded178367586.tar.bz2
yuzu-456322dde6682c679c377b157c77ded178367586.tar.lz
yuzu-456322dde6682c679c377b157c77ded178367586.tar.xz
yuzu-456322dde6682c679c377b157c77ded178367586.tar.zst
yuzu-456322dde6682c679c377b157c77ded178367586.zip
Diffstat (limited to 'src/video_core')
-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;
}