diff options
author | Subv <subv2112@gmail.com> | 2018-08-21 03:45:46 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-08-21 03:45:46 +0200 |
commit | eac3cf301c60d178164ed51cf84c098b06e6db54 (patch) | |
tree | a4c186d131995fc58fc4d8d89465d8ed86d9ac5c /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Shaders: Log and crash when using an unimplemented texture type in a texture sampling instruction. (diff) | |
download | yuzu-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 |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
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; } |