diff options
| author | 2023-06-15 23:16:26 +0200 | |
|---|---|---|
| committer | 2023-06-15 23:16:26 +0200 | |
| commit | a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b (patch) | |
| tree | 0b3bea548cb1282d45a53365faea13e4321a69f8 /src/video_core/textures | |
| parent | video_core: Disable AF for non-color image formats (diff) | |
| download | yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.gz yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.tar.xz yuzu-a3b7b5b22af8ef83fc765afac9d6f6b8dac7f62b.zip | |
video_core: Fallback to default anisotropy instead to 1x anisotropy
Diffstat (limited to 'src/video_core/textures')
| -rw-r--r-- | src/video_core/textures/texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cpp index cb24d0399..63ebdfa82 100644 --- a/src/video_core/textures/texture.cpp +++ b/src/video_core/textures/texture.cpp | |||
| @@ -68,8 +68,8 @@ float TSCEntry::MaxAnisotropy() const noexcept { | |||
| 68 | const bool has_regular_lods = min_lod_clamp == 0 && max_lod_clamp >= 256; | 68 | const bool has_regular_lods = min_lod_clamp == 0 && max_lod_clamp >= 256; |
| 69 | const bool is_bilinear_filter = min_filter == TextureFilter::Linear && | 69 | const bool is_bilinear_filter = min_filter == TextureFilter::Linear && |
| 70 | reduction_filter == SamplerReduction::WeightedAverage; | 70 | reduction_filter == SamplerReduction::WeightedAverage; |
| 71 | if (max_anisotropy == 0 && (depth_compare_enabled.Value() || !has_regular_lods || | 71 | if (max_anisotropy == 0 && (depth_compare_enabled || !has_regular_lods || !is_bilinear_filter || |
| 72 | !is_bilinear_filter || !is_suitable_mipmap_filter)) { | 72 | !is_suitable_mipmap_filter)) { |
| 73 | return 1.0f; | 73 | return 1.0f; |
| 74 | } | 74 | } |
| 75 | const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue(); | 75 | const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue(); |