From 714558853c89c71f5bfea9f252182d8f9f2cfafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 18 Aug 2023 15:21:07 +0200 Subject: [PATCH] Enable anisotropic filtering for replacement textures with mipmaps --- GPU/Common/TextureCacheCommon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 5afc2b5be76f..d7ba813831e0 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -257,6 +257,9 @@ SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCac key.mipEnable = true; key.mipFilt = 1; key.maxLevel = 9 * 256; + if (gstate_c.Use(GPU_USE_ANISOTROPY) && g_Config.iAnisotropyLevel > 0) { + key.aniso = true; + } } useReplacerFiltering = entry->replacedTexture->ForceFiltering(&forceFiltering); }