Skip to content

Commit

Permalink
Enable anisotropic filtering for replacement textures with mipmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Aug 18, 2023
1 parent 5acb421 commit 7145588
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 7145588

Please sign in to comment.