From 3d7c284e0f02eaddae89dac0983535a9650913a0 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Thu, 7 Nov 2019 11:30:41 -0400 Subject: GLSLDecompiler: Correct Texture Gather Offset. This commit corrects the argument ordering in textureGatherOffset. --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 030550c53..8a514cb8a 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}; } -- cgit v1.2.3