mirror of https://github.com/PCSX2/pcsx2.git
GS: Fix undefined behaviour on interlacing
This commit is contained in:
parent
4fc6e9240c
commit
31fe9979dd
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue