diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 8037aadc5..160329f19 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -2562,9 +2562,9 @@ private: | |||
| 2562 | break; | 2562 | break; |
| 2563 | } | 2563 | } |
| 2564 | case 3: { | 2564 | case 3: { |
| 2565 | const std::string x = regs.GetRegisterAsFloat(instr.gpr8); | 2565 | const std::string x = regs.GetRegisterAsFloat(instr.gpr8.Value() + start_index); |
| 2566 | const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1); | 2566 | const std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + start_index + 1); |
| 2567 | const std::string z = regs.GetRegisterAsFloat(instr.gpr8.Value() + 2); | 2567 | const std::string z = regs.GetRegisterAsFloat(instr.gpr8.Value() + start_index + 2); |
| 2568 | if (is_array) { | 2568 | if (is_array) { |
| 2569 | depth_compare_extra = depth_compare; | 2569 | depth_compare_extra = depth_compare; |
| 2570 | coord = "vec4 coords = vec4(" + x + ", " + y + ", " + z + ", " + | 2570 | coord = "vec4 coords = vec4(" + x + ", " + y + ", " + z + ", " + |