1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

GL: fix IFE instruction

This commit is contained in:
raven02 2015-05-22 07:56:49 +08:00 committed by vlj
parent df794b88b0
commit f961a2e3b4

View File

@ -501,7 +501,8 @@ std::string FragmentProgramDecompiler::Decompile()
case RSX_FP_OPCODE_FENCB: forced_unit = FORCE_SCB; break;
case RSX_FP_OPCODE_IFE:
AddCode("if($cond)");
m_else_offsets.push_back(src1.else_offset << 2);
if (src2.end_offset != src1.else_offset)
m_else_offsets.push_back(src1.else_offset << 2);
m_end_offsets.push_back(src2.end_offset << 2);
AddCode("{");
m_code_level++;