softgpu: Fix state race on screen offset.

Caused glitches in Motorstorm.
This commit is contained in:
Unknown W. Brackets committed 2022-01-23 08:08:40 -08:00
1 parent 76f9103e97
commit 77db9c818f
1 file changed
+2 -2
+2 -2
View File
@@ -347,8 +347,8 @@ void BinManager::Drain() {
int h2 = (queueRange_.y2 - queueRange_.y1 + 31) / 32;
// Always bin the entire possible range, but focus on the drawn area.
ScreenCoords tl = TransformUnit::DrawingToScreen(DrawingCoords(0, 0), 0);
ScreenCoords br = TransformUnit::DrawingToScreen(DrawingCoords(1024, 1024), 0);
ScreenCoords tl(queueOffsetX_, queueOffsetY_, 0);
ScreenCoords br(queueOffsetX_ + 1024 * 16, queueOffsetY_ + 1024 * 16, 0);
taskRanges_.clear();
if (h2 >= 18 && w2 >= h2 * 4) {