mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Merge pull request #16385 from unknownbrackets/softgpu-rect
softgpu: Fix off-by-one rendering after half-pixel
This commit is contained in:
1 file changed
+1
-1
@@ -893,7 +893,7 @@ void DrawRectangle(const VertexData &v0, const VertexData &v1, const BinCoords &
|
||||
#endif
|
||||
|
||||
for (int64_t curY = minY; curY <= maxY; curY += SCREEN_SCALE_FACTOR * 2, rowST += sty) {
|
||||
DrawingCoords p = TransformUnit::ScreenToDrawing(range.x1, curY);
|
||||
DrawingCoords p = TransformUnit::ScreenToDrawing(minX, curY);
|
||||
|
||||
int scissorY2 = curY + SCREEN_SCALE_FACTOR > maxY ? -1 : 0;
|
||||
Vec4<int> scissor_mask = Vec4<int>(0, maxX - minX - SCREEN_SCALE_FACTOR, scissorY2, (maxX - minX - SCREEN_SCALE_FACTOR) | scissorY2);
|
||||
|
||||
Reference in new issue
Block a user