Don't force nearest for colortest against black.

Should fix #4217 and be relatively safe.  Probably it's a common colortest
ref color that's safe?
This commit is contained in:
Unknown W. Brackets committed 2014-05-15 23:52:16 -07:00
1 parent 99458d7797
commit ec0ae44200
1 file changed
+9 -1
+9 -1
View File
@@ -532,8 +532,16 @@ void TextureCache::UpdateSamplingParams(TexCacheEntry &entry, bool force) {
minFilt |= 1;
}
}
bool forceNearest = g_Config.iTexFiltering == NEAREST;
// Force Nearest when color test enabled and rendering resolution greater than 480x272
if (g_Config.iTexFiltering == NEAREST || ((gstate.isColorTestEnabled() && !IsColorTestTriviallyTrue()) && g_Config.iInternalResolution != 1 && gstate.isModeThrough())) {
if ((gstate.isColorTestEnabled() && !IsColorTestTriviallyTrue()) && g_Config.iInternalResolution != 1 && gstate.isModeThrough()) {
// Some games use 0 as the color test color, which won't be too bad if it bleeds.
// Fuchsia and green, etc. are the problem colors.
if (gstate.getColorTestRef() != 0) {
forceNearest = true;
}
}
if (forceNearest) {
magFilt &= ~1;
minFilt &= ~1;
}