Skip to content

Commit

Permalink
Merge pull request #17930 from hrydgard/replacement-fix-aniso
Browse files Browse the repository at this point in the history
Enable anisotropic filtering for replacement textures with mipmaps
  • Loading branch information
hrydgard authored Aug 18, 2023
2 parents 5acb421 + 7145588 commit fce95be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPU/Common/TextureCacheCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fce95be

Please sign in to comment.