aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.cpp
diff options
context:
space:
mode:
authorWollnashorn <Wollnashorn@users.noreply.github.com>2023-06-15 23:16:26 +0200
committerWollnashorn <Wollnashorn@users.noreply.github.com>2023-06-15 23:16:26 +0200
commiteff77dae59e5e30da03672db2cc3621f632f0f84 (patch)
tree0b3bea548cb1282d45a53365faea13e4321a69f8 /src/video_core/textures/texture.cpp
parente405fb1c72699e815788849e88341b7480073c9e (diff)
video_core: Fallback to default anisotropy instead to 1x anisotropy
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 cb24d03992..63ebdfa827 100644
--- a/src/video_core/textures/texture.cpp
+++ b/src/video_core/textures/texture.cpp
@@ -68,8 +68,8 @@ float TSCEntry::MaxAnisotropy() const noexcept {
const bool has_regular_lods = min_lod_clamp == 0 && max_lod_clamp >= 256;
const bool is_bilinear_filter = min_filter == TextureFilter::Linear &&
reduction_filter == SamplerReduction::WeightedAverage;
- if (max_anisotropy == 0 && (depth_compare_enabled.Value() || !has_regular_lods ||
- !is_bilinear_filter || !is_suitable_mipmap_filter)) {
+ if (max_anisotropy == 0 && (depth_compare_enabled || !has_regular_lods || !is_bilinear_filter ||
+ !is_suitable_mipmap_filter)) {
return 1.0f;
}
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();