diff --git a/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp b/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp index 3548f670b5..7f6df3626e 100644 --- a/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp +++ b/rpcs3/Emu/RSX/VK/VKFragmentProgram.cpp @@ -270,7 +270,7 @@ void VKFragmentDecompilerThread::insertMainStart(std::stringstream & OS) if (PI.name == "fogc") { vk::insert_fog_declaration(OS, m_prog.fog_equation); - return; + continue; } } } diff --git a/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp b/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp index 98aa57590b..8c203fc519 100644 --- a/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp +++ b/rpcs3/Emu/RSX/VK/VKVertexProgram.cpp @@ -264,7 +264,7 @@ void VKVertexDecompilerThread::insertMainEnd(std::stringstream & OS) { if (m_parr.HasParam(PF_PARAM_NONE, "vec4", i.src_reg)) { - if (i.name == "front_spec_color") + if (i.name == "front_diff_color") insert_front_diffuse = false; if (i.name == "front_spec_color")