aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.cpp
diff options
context:
space:
mode:
authorWollnashorn <Wollnashorn@users.noreply.github.com>2023-06-13 18:07:08 +0200
committerWollnashorn <Wollnashorn@users.noreply.github.com>2023-06-13 21:32:32 +0200
commitff4c4a45e66635ec7521999932c675b5fa9f0ecb (patch)
tree45e3203fedb245c5955545af66f715f978406a9b /src/video_core/textures/texture.cpp
parent6f1fb4c28a40234272542589d5a93d7b9cf4604c (diff)
video_core: Disable anisotropic filtering for samplers with depth compare
Diffstat (limited to 'src/video_core/textures/texture.cpp')
-rw-r--r--src/video_core/textures/texture.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/textures/texture.cpp b/src/video_core/textures/texture.cpp
index 12372a0041..083bfd8d3d 100644
--- a/src/video_core/textures/texture.cpp
+++ b/src/video_core/textures/texture.cpp
@@ -62,8 +62,9 @@ std::array<float, 4> TSCEntry::BorderColor() const noexcept {
}
float TSCEntry::MaxAnisotropy() const noexcept {
- if (max_anisotropy == 0 && (mipmap_filter != TextureMipmapFilter::Linear &&
- !Settings::values.use_aggressive_anisotropic_filtering)) {
+ if (max_anisotropy == 0 && (depth_compare_enabled.Value() ||
+ (mipmap_filter != TextureMipmapFilter::Linear &&
+ !Settings::values.use_aggressive_anisotropic_filtering))) {
return 1.0f;
}
const auto anisotropic_settings = Settings::values.max_anisotropy.GetValue();