mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
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:
1 parent
99458d7797
commit
ec0ae44200
1 file changed
+9
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user