Skip to content

Commit

Permalink
Merge pull request #18519 from hrydgard/texture-replacement-filter
Browse files Browse the repository at this point in the history
Enable texture replacement filtering overrides even if file is missing
  • Loading branch information
hrydgard committed Dec 11, 2023
2 parents bf05420 + 3902c85 commit 8f75649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/Common/TextureCacheCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCac
// Filtering overrides from replacements or settings.
TextureFiltering forceFiltering = TEX_FILTER_AUTO;
bool useReplacerFiltering = false;
if (entry && replacer_.Enabled() && entry->replacedTexture && entry->replacedTexture->State() == ReplacementState::ACTIVE) {
if (entry && replacer_.Enabled() && entry->replacedTexture) {
// If replacement textures have multiple mip levels, enforce mip filtering.
if (entry->replacedTexture->NumLevels() > 1) {
if (entry->replacedTexture->State() == ReplacementState::ACTIVE && entry->replacedTexture->NumLevels() > 1) {
key.mipEnable = true;
key.mipFilt = 1;
key.maxLevel = 9 * 256;
Expand Down

0 comments on commit 8f75649

Please sign in to comment.