aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GPU3D.cpp')
-rw-r--r--src/GPU3D.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp
index f4de0c1..f08ee5d 100644
--- a/src/GPU3D.cpp
+++ b/src/GPU3D.cpp
@@ -882,7 +882,7 @@ void SubmitPolygon()
if (FlushAttributes & 0x2)
z = wshifted;
else if (wshifted)
- z = (((s64)vtx->Position[2] * 0x800000) / wshifted) + 0x7FFEFF;
+ z = ((((s64)vtx->Position[2] * 0x4000) / wshifted) * 0x200) + 0x7FFE00;
else
z = 0x7FFEFF;