Skip to content

Commit 3aead95

Browse files
Oops, fix typo causing clamping to clamp wrong.
1 parent 7e54368 commit 3aead95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/Common/GPUStateUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ void ConvertViewportAndScissor(bool useBufferedRendering, float renderWidth, flo
647647
float drift = overageFar - overageNear;
648648

649649
near += overageNear;
650-
far += overageFar;
650+
far -= overageFar;
651651

652652
zScale = fabsf(vpZScale * (2.0f / 65535.0f)) / (far - near);
653653
zOffset = drift / (far - near);

0 commit comments

Comments
 (0)