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
This commit is contained in:
gabest11 2011-11-14 03:34:24 +00:00
parent ee9c9ac8f3
commit 4f6f53c188
2 changed files with 4 additions and 1 deletions

View File

@ -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)
{

View File

@ -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;