Skip to content

Commit

Permalink
Don't override "Linear"-forced texture filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 11, 2024
1 parent e3841dd commit 09d8bc5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions GPU/Common/TextureCacheCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCac
if (uglyColorTest)
forceFiltering = TEX_FILTER_FORCE_NEAREST;
}
if (gstate_c.pixelMapped) {
forceFiltering = TEX_FILTER_FORCE_NEAREST;
}
break;
case TEX_FILTER_FORCE_LINEAR:
// Override to linear filtering if there's no alpha or color testing going on.
Expand All @@ -281,12 +284,12 @@ SamplerCacheKey TextureCacheCommon::GetSamplingParams(int maxLevel, const TexCac
if (uglyColorTest)
forceFiltering = TEX_FILTER_FORCE_NEAREST;
}
if (gstate_c.pixelMapped) {
forceFiltering = TEX_FILTER_FORCE_NEAREST;
}
break;
}
}
if (gstate_c.pixelMapped) {
forceFiltering = TEX_FILTER_FORCE_NEAREST;
}

switch (forceFiltering) {
case TEX_FILTER_AUTO:
Expand Down

0 comments on commit 09d8bc5

Please sign in to comment.