Skip to content

Commit

Permalink
VideoCommon: Fix scissorOffset, handle negative value correctly.
Browse files Browse the repository at this point in the history
Fix lint error.
  • Loading branch information
ezio1900 committed Apr 19, 2021
1 parent b957f77 commit 6b305ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoBackends/Software/Clipper.cpp
Expand Up @@ -514,9 +514,9 @@ void PerspectiveDivide(OutputVertexData* vertex)

float wInverse = 1.0f / projected.w;
screen.x =
projected.x * wInverse * xfmem.viewport.wd + xfmem.viewport.xOrig - bpmem.scissorOffset.x * 2;
projected.x * wInverse * xfmem.viewport.wd + xfmem.viewport.xOrig - bpmem.scissorOffset.x * 2;
screen.y =
projected.y * wInverse * xfmem.viewport.ht + xfmem.viewport.yOrig - bpmem.scissorOffset.y * 2;
projected.y * wInverse * xfmem.viewport.ht + xfmem.viewport.yOrig - bpmem.scissorOffset.y * 2;
screen.z = projected.z * wInverse * xfmem.viewport.zRange + xfmem.viewport.farZ;
}
} // namespace Clipper

0 comments on commit 6b305ce

Please sign in to comment.