From 4f6f53c188864e446c6de733f47600c4d914c05d Mon Sep 17 00:00:00 2001 From: gabest11 Date: Mon, 14 Nov 2011 03:34:24 +0000 Subject: [PATCH] GSdx: Just remembered triangles were occasionally converted to sprites, need to set t.w there as well. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4967 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSDrawScanline.cpp | 2 +- plugins/GSdx/GSRendererSW.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSDrawScanline.cpp b/plugins/GSdx/GSDrawScanline.cpp index d6c30bf89f..8eb7830111 100644 --- a/plugins/GSdx/GSDrawScanline.cpp +++ b/plugins/GSdx/GSDrawScanline.cpp @@ -116,7 +116,7 @@ void GSDrawScanline::DrawRect(const GSVector4i& r, const GSVertexSW& v) const int* zbr = m_global.zbr; const int* zbc = m_global.zbc; - uint32 z = (uint32)v.p.z; + uint32 z = v.t.u32[3]; // (uint32)v.p.z; if(m_global.sel.zpsm != 2) { diff --git a/plugins/GSdx/GSRendererSW.cpp b/plugins/GSdx/GSRendererSW.cpp index de9e28fb58..c11bc40f53 100644 --- a/plugins/GSdx/GSRendererSW.cpp +++ b/plugins/GSdx/GSRendererSW.cpp @@ -879,6 +879,9 @@ if(!m_dump) if(tl != 0) m_vertices[0] = m_vertices[tl]; if(br != 1) m_vertices[1] = m_vertices[br]; + m_vertices[0].t.u32[3] = m_v.XYZ.Z; + m_vertices[1].t.u32[3] = m_v.XYZ.Z; + m_count = 2; uint32 tmp = PRIM->PRIM;