Browse Source

Merge pull request #3080 from FernandoS27/glsl-fix

GLSLDecompiler: Correct Texture Gather Offset.
nce_cpp
bunnei 6 years ago
committed by GitHub
parent
commit
4eb49118d9
  1. 2
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

2
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@ -1670,7 +1670,7 @@ private:
const auto type = meta->sampler.IsShadow() ? Type::Float : Type::Int; const auto type = meta->sampler.IsShadow() ? Type::Float : Type::Int;
return {GenerateTexture(operation, "Gather", return {GenerateTexture(operation, "Gather",
{TextureArgument{type, meta->component}, TextureAoffi{}}) +
{TextureAoffi{}, TextureArgument{type, meta->component}}) +
GetSwizzle(meta->element), GetSwizzle(meta->element),
Type::Float}; Type::Float};
} }

Loading…
Cancel
Save