diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2025-08-01 21:59:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 21:59:04 +0200 |
| commit | 3fb80bec9b947ae9690776bc0a0589ff2b36d1c1 (patch) | |
| tree | bd22eff1f4baa2e510dfa5c8181bdd0d4ae3bf19 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 9e271c3f677673fa8ec1e536e0c61df0352bf739 (diff) | |
| parent | 60156f4f94f46a4a708a5fd5d37d4789a777b7b9 (diff) | |
Merge pull request #13780 from jordan-woyak/fix-text-filter-nearest
VideoCommon: Fix "Force Nearest" texture filter setting.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index dc47eac86e..46f571df30 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -1030,6 +1030,11 @@ SamplerState TextureCacheBase::GetSamplerState(u32 index, float custom_tex_scale if (g_ActiveConfig.iMaxAnisotropy != AnisotropicFilteringMode::Default && IsAnisostropicEnhancementSafe(tm0)) { + state.tm0.anisotropic_filtering = Common::ToUnderlying(g_ActiveConfig.iMaxAnisotropy); + } + + if (state.tm0.anisotropic_filtering != 0) + { // https://www.opengl.org/registry/specs/EXT/texture_filter_anisotropic.txt // For predictable results on all hardware/drivers, only use one of: // GL_LINEAR + GL_LINEAR (No Mipmaps [Bilinear]) @@ -1041,7 +1046,6 @@ SamplerState TextureCacheBase::GetSamplerState(u32 index, float custom_tex_scale state.tm0.mag_filter = FilterMode::Linear; if (tm0.mipmap_filter != MipMode::None) state.tm0.mipmap_filter = FilterMode::Linear; - state.tm0.anisotropic_filtering = Common::ToUnderlying(g_ActiveConfig.iMaxAnisotropy); } if (has_arbitrary_mips && tm0.mipmap_filter != MipMode::None) |
