Skip to content
Permalink
Browse files

Scissor fix

  • Loading branch information...
hrydgard committed Oct 25, 2019
1 parent a84f4a0 commit 102a70b4a583847b723ed2d66a1874891b743dec
Showing with 2 additions and 2 deletions.
  1. +2 −2 GPU/Software/Rasterizer.cpp
@@ -1372,8 +1372,8 @@ void DrawSprite(const VertexData& v0, const VertexData& v1) {
}

// First clip the right and bottom sides, since we don't need to adjust the deltas.
if (pos1.x > scissorBR.x) pos1.x = scissorBR.x;
if (pos1.y > scissorBR.y) pos1.y = scissorBR.y;
if (pos1.x > scissorBR.x) pos1.x = scissorBR.x + 1;
if (pos1.y > scissorBR.y) pos1.y = scissorBR.y + 1;
// Now clip the other sides.
if (pos0.x < scissorTL.x) {
s_start += (scissorTL.x - pos0.x) * ds;

0 comments on commit 102a70b

Please sign in to comment.
You can’t perform that action at this time.