summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-11-23 03:02:18 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2018-11-24 03:46:49 +0100
commit9c2127d5ebcd5a674f539a41b656056b7e06f1aa (patch)
tree9ce6c35ad6f8c7742b1ccf1e1f26199120633df7
parentCorrected inputs indexing in TEX instruction (diff)
downloadyuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.tar
yuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.tar.gz
yuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.tar.bz2
yuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.tar.lz
yuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.tar.xz
yuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.tar.zst
yuzu-9c2127d5ebcd5a674f539a41b656056b7e06f1aa.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp6
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:
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 + ", " +