Просмотр исходного кода

Fix one encoding in TEX Instruction

FernandoS27 7 лет назад
Родитель
Сommit
9c2127d5eb
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 3 - 3
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -2562,9 +2562,9 @@ private:
                     break;
                 }
                 case 3: {
-                    const std::string x = regs.GetRegisterAsFloat(instr.gpr8);
-                    const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
-                    const std::string z = regs.GetRegisterAsFloat(instr.gpr8.Value() + 2);
+                    const std::string x = regs.GetRegisterAsFloat(instr.gpr8.Value() + start_index);
+                    const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + start_index + 1);
+                    const std::string z = regs.GetRegisterAsFloat(instr.gpr8.Value() + start_index + 2);
                     if (is_array) {
                         depth_compare_extra = depth_compare;
                         coord = "vec4 coords = vec4(" + x + ", " + y + ", " + z + ", " +