rsx: Vertex Decompiler, fix sca register assignment

This commit is contained in:
Jake 2017-08-18 00:47:59 -05:00 committed by kd-11
parent 4d5f98017f
commit 5d7c454e52
2 changed files with 6 additions and 5 deletions

View file

@ -43,7 +43,7 @@ std::string VertexProgramDecompiler::GetDST(bool isSca)
std::string mask = GetMask(isSca);
switch (isSca ? 0x1f : d3.dst)
switch ((isSca && d3.sca_dst_tmp != 0x3f) ? 0x1f : d3.dst)
{
case 0x1f:
ret += m_parr.AddParam(PF_PARAM_NONE, getFloatTypeName(4), std::string("tmp") + std::to_string(isSca ? d3.sca_dst_tmp : d0.dst_tmp)) + mask;