mirror of https://github.com/PCSX2/pcsx2.git
GS-HW: Iterate dirty rects in reverse to join existing ones.
This commit is contained in:
parent
4a3f0ccf96
commit
9346c69343
|
@ -91,9 +91,10 @@ void GSTextureCache::AddDirtyRectTarget(Target* target, GSVector4i rect, u32 psm
|
|||
{
|
||||
bool skipdirty = false;
|
||||
bool canskip = true;
|
||||
std::vector<GSDirtyRect>::iterator it = target->m_dirty.begin();
|
||||
while (it != target->m_dirty.end())
|
||||
std::vector<GSDirtyRect>::iterator it = target->m_dirty.end();
|
||||
while (it != target->m_dirty.begin())
|
||||
{
|
||||
--it;
|
||||
if (it[0].bw == bw && it[0].psm == psm)
|
||||
{
|
||||
if (it[0].r.rintersect(rect).eq(rect) && canskip)
|
||||
|
@ -112,7 +113,6 @@ void GSTextureCache::AddDirtyRectTarget(Target* target, GSVector4i rect, u32 psm
|
|||
continue;
|
||||
}
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
||||
if (!skipdirty)
|
||||
|
|
Loading…
Reference in New Issue