Scissor fix

This commit is contained in:
Henrik Rydgård 2019-10-26 00:29:07 +02:00
parent a84f4a0caa
commit 102a70b4a5

View File

@ -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;