VERY experimental Nintendo Switch 2 emulator
C++
Shaders: Fixed the coords in TEX with Texture2D.
Subv7b21918d83c3
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cppindex c8ff1cdf56..b7b3fbc17f 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;}