mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 02:00:15 +01:00
GS: Fix undefined behaviour on interlacing
This commit is contained in:
1 parent
4fc6e9240c
commit
31fe9979dd
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user