GS: Fix undefined behaviour on interlacing

This commit is contained in:
refractionpcsx2 committed 2022-04-15 22:12:04 +01:00
1 parent 4fc6e9240c
commit 31fe9979dd
1 file changed
+1 -1
+1 -1
View File
@@ -402,7 +402,7 @@ bool GSRenderer::Merge(int field)
}
else
{
const int field2 = scanmask ? 0 : 0 - ((static_cast<int>(GSConfig.InterlaceMode) - 1) & 1);
const int field2 = scanmask ? 0 : 1 - ((static_cast<int>(GSConfig.InterlaceMode) - 1) & 1);
const int offset = tex[1] ? tex[1]->GetScale().y : tex[0]->GetScale().y;
const int mode = scanmask ? 2 : ((static_cast<int>(GSConfig.InterlaceMode) - 1) >> 1);