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 a63193f..72e7179 100644
--- a/src/GPU3D.cpp
+++ b/src/GPU3D.cpp
@@ -839,6 +839,7 @@ void SubmitPolygon()
poly->YTop = ytop; poly->YBottom = ybot;
poly->XTop = xtop; poly->XBottom = xbot;
poly->WShift = wshift;
+ poly->WBuffer = (FlushAttributes & 0x2);
for (int i = 0; i < nverts; i++)
{
@@ -849,7 +850,6 @@ void SubmitPolygon()
if (FlushAttributes & 0x2)
z = w << wshift;
else
- //z = vtx->Position[2]+0x7FFFFF;//((vtx->Position[2] + (w<<wshift)) * 0x1000) / (w<<(wshift+1));
z = (((s64)vtx->Position[2] * 0x800000) / (w << wshift)) + 0x7FFEFF;
// checkme