From e04b67dad4ec56055ff2779a679f3d819beeff73 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 20 Sep 2014 13:03:22 +0200 Subject: [PATCH] When aniso filtering is enabled, force it on for min filtering but not for mag filtering. --- GPU/Directx9/TextureCacheDX9.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GPU/Directx9/TextureCacheDX9.cpp b/GPU/Directx9/TextureCacheDX9.cpp index 55329f692f..b9f4638722 100644 --- a/GPU/Directx9/TextureCacheDX9.cpp +++ b/GPU/Directx9/TextureCacheDX9.cpp @@ -682,10 +682,11 @@ void TextureCacheDX9::UpdateSamplingParams(TexCacheEntry &entry, bool force) { D3DTEXTUREFILTERTYPE magf = (D3DTEXTUREFILTERTYPE)MagFilt[minFilt]; if (g_Config.iAnisotropyLevel > 0) { - if (minf == D3DTEXF_LINEAR) { - minf = D3DTEXF_ANISOTROPIC; - mipf = D3DTEXF_ANISOTROPIC; - } + mipf = D3DTEXF_ANISOTROPIC; + minf = D3DTEXF_ANISOTROPIC; + // In OpenGL, it seems like enabling anisotropy effectively turns on linear filtering. + // If we wanted the same behaviour here, we could add the following line, but I don't think it's correct to do that: + // magf = D3DTEXF_LINEAR; // (intentionally commented out) } dxstate.texMinFilter.set(minf);