GS: Fix undefined behaviour on interlacing

This commit is contained in:
refractionpcsx2 2022-04-15 19:17:36 +01:00
parent 4fc6e9240c
commit 31fe9979dd
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ bool GSRenderer::Merge(int field)
} }
else 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 offset = tex[1] ? tex[1]->GetScale().y : tex[0]->GetScale().y;
const int mode = scanmask ? 2 : ((static_cast<int>(GSConfig.InterlaceMode) - 1) >> 1); const int mode = scanmask ? 2 : ((static_cast<int>(GSConfig.InterlaceMode) - 1) >> 1);