rsx/common: Vertex program condition swizzle should apply to cc0, not float4(0.)

This commit is contained in:
Vincent Lejeune 2015-12-14 23:40:05 +01:00
parent a44c54b428
commit 69b3828086
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ std::string VertexProgramDecompiler::GetCond()
swizzle += f[d0.mask_w];
swizzle = swizzle == "xyzw" ? "" : "." + swizzle;
return "any(" + compareFunction(cond_string_table[d0.cond], "cc" + std::to_string(d0.cond_reg_sel_1), getFloatTypeName(4) + "(0., 0., 0., 0.)" + swizzle) + ")";
return "any(" + compareFunction(cond_string_table[d0.cond], "cc" + std::to_string(d0.cond_reg_sel_1) + swizzle, getFloatTypeName(4) + "(0., 0., 0., 0.)" + swizzle) + ")";
}
void VertexProgramDecompiler::AddCodeCond(const std::string& dst, const std::string& src)