VERY experimental Nintendo Switch 2 emulator
C++
GLSLDecompiler: Correct Texture Gather Offset.
Fernando Sahmkowa4d70a6eacb3
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cppindex 030550c533..8a514cb8a6 100644--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp@@ -1670,7 +1670,7 @@ private:const auto type = meta->sampler.IsShadow() ? Type::Float : Type::Int;return {GenerateTexture(operation, "Gather",- {TextureArgument{type, meta->component}, TextureAoffi{}}) ++ {TextureAoffi{}, TextureArgument{type, meta->component}}) +GetSwizzle(meta->element),Type::Float};}