From 5264d55b39e15c7236d6114d74a9288fb0d62e3a Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 17 Oct 2020 05:16:40 -0300 Subject: Fix gl_in being used with built-in variables that are not per-vertex (#1624) --- Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/CodeGen') 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}"; } -- cgit v1.2.3