From 8e7f35feee8a6ff51fceddd7a28d0a55cb264381 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Wed, 3 Jul 2013 22:02:24 +0200 Subject: [PATCH] softgpu: Workaround a bug in through mode (in Rasterizer::DrawTriangle "den" would become really large because clippos.w wasn't initialized to a good value). --- GPU/Software/TransformUnit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/GPU/Software/TransformUnit.cpp b/GPU/Software/TransformUnit.cpp index 923cdc1e51..2016566070 100644 --- a/GPU/Software/TransformUnit.cpp +++ b/GPU/Software/TransformUnit.cpp @@ -118,6 +118,7 @@ static VertexData ReadVertex(VertexReader& vreader) vertex.drawpos.x = pos[0]; vertex.drawpos.y = pos[1]; vertex.drawpos.z = 0; // TODO: Not sure if that's what we should do here + vertex.clippos.w = 1.f; } return vertex;