Skip to content

Commit

Permalink
Comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 13, 2020
1 parent 854ff7c commit d5717c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/Common/TextureCacheCommon.cpp
Expand Up @@ -187,10 +187,10 @@ void TextureCacheCommon::GetSamplingParams(int &minFilt, int &magFilt, bool &sCl
case TEX_FILTER_AUTO:
// Follow what the game wants. We just do a single heuristic change to avoid bleeding of wacky color test colors
// in higher resolution (used by some games for sprites, and they accidentally have linear filter on).
// This does duplicate the body of the above if, but it's clearer this way.
if (gstate.isModeThrough() && g_Config.iInternalResolution != 1) {
bool uglyColorTest = gstate.isColorTestEnabled() && !IsColorTestTriviallyTrue() && gstate.getColorTestRef() != 0;
if (uglyColorTest) {
// Force to nearest.
magFilt &= ~1;
minFilt &= ~1;
}
Expand All @@ -206,7 +206,7 @@ void TextureCacheCommon::GetSamplingParams(int &minFilt, int &magFilt, bool &sCl
break;
case TEX_FILTER_FORCE_NEAREST:
default:
// Just override everything to nearest without checks. Safe (but ugly).
// Just force to nearest without checks. Safe (but ugly).
magFilt &= ~1;
minFilt &= ~1;
break;
Expand Down

0 comments on commit d5717c8

Please sign in to comment.