From ea6d0f07e4cd3ee7598eeaee101a6b93dd7c8429 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 31 Oct 2021 13:19:51 -0700 Subject: [PATCH] GPU: Correct point width/height. Oops, shouldn't be half in 3D transform. --- GPU/Common/SoftwareTransformCommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Common/SoftwareTransformCommon.cpp b/GPU/Common/SoftwareTransformCommon.cpp index a5a8ae1f8a..2d8d30b60e 100644 --- a/GPU/Common/SoftwareTransformCommon.cpp +++ b/GPU/Common/SoftwareTransformCommon.cpp @@ -801,8 +801,8 @@ void SoftwareTransform::ExpandPoints(int vertexCount, int &maxIndex, u16 *&inds, u16 *newInds = inds + vertexCount; u16 *indsOut = newInds; - float dx = 0.5f * gstate_c.vpWidthScale * (1.0f / gstate.getViewportXScale()); - float dy = 0.5f * gstate_c.vpHeightScale *(1.0f / gstate.getViewportYScale()); + float dx = 1.0f * gstate_c.vpWidthScale * (1.0f / gstate.getViewportXScale()); + float dy = 1.0f * gstate_c.vpHeightScale * (1.0f / gstate.getViewportYScale()); float du = 1.0f / gstate_c.curTextureWidth; float dv = 1.0f / gstate_c.curTextureHeight;