Skip to content

Commit 3ef7b6c

Browse files
committed
GS/SW: Adjust bounds in assertion to present false positive.
Account for the fact that bottom/right coordinates are exclusive.
1 parent 7988320 commit 3ef7b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcsx2/GS/Renderers/SW/GSRasterizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ void GSRasterizerList::Queue(const GSRingHeap::SharedPtr<GSRasterizerData>& data
15501550
m_ds.SetupDraw(*data.get());
15511551
}
15521552

1553-
pxAssert(r.top >= 0 && r.top < 2048 && r.bottom >= 0 && r.bottom < 2048);
1553+
pxAssert(r.top >= 0 && r.top <= 2048 && r.bottom >= 0 && r.bottom <= 2048);
15541554

15551555
int top = r.top >> m_thread_height;
15561556
int bottom = std::min<int>((r.bottom + (1 << m_thread_height) - 1) >> m_thread_height, top + (int)m_workers.size());

0 commit comments

Comments
 (0)