diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-10-17 05:16:40 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-17 10:16:40 +0200 |
| commit | 5264d55b39e15c7236d6114d74a9288fb0d62e3a (patch) | |
| tree | e053dffd5f41efd0b2500fdde89a0c69de73b5bf /Ryujinx.Graphics.Shader/CodeGen | |
| parent | b4d8d893a4abb20b96fc6171841a858005906445 (diff) | |
Fix gl_in being used with built-in variables that are not per-vertex (#1624)
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs index d6f30b48..465356e6 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs @@ -206,7 +206,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl string name = builtInAttr.Name; - if (config.Stage == ShaderStage.Geometry && !isOutAttr) + if (config.Stage == ShaderStage.Geometry && (value & AttributeConsts.SpecialMask) == 0 && !isOutAttr) { name = $"gl_in[{indexExpr}].{name}"; } |
