summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-08-21 03:45:46 +0200
committerSubv <subv2112@gmail.com>2018-08-21 03:45:46 +0200
commiteac3cf301c60d178164ed51cf84c098b06e6db54 (patch)
treea4c186d131995fc58fc4d8d89465d8ed86d9ac5c
parentShaders: Log and crash when using an unimplemented texture type in a texture sampling instruction. (diff)
downloadyuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.tar
yuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.tar.gz
yuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.tar.bz2
yuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.tar.lz
yuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.tar.xz
yuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.tar.zst
yuzu-eac3cf301c60d178164ed51cf84c098b06e6db54.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index c8ff1cdf5..b7b3fbc17 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1514,7 +1514,7 @@ private:
switch (instr.tex.texture_type) {
case Tegra::Shader::TextureType::Texture2D: {
std::string x = regs.GetRegisterAsFloat(instr.gpr8);
- std::string y = regs.GetRegisterAsFloat(instr.gpr20);
+ std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
coord = "vec2 coords = vec2(" + x + ", " + y + ");";
break;
}