diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-04-02 21:20:47 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 11:20:47 +1100 |
| commit | e93ca84b14cc325364f1ccc45a6e8622978e959d (patch) | |
| tree | 8e32b23e94e529ccf91b8e7d7613ce003d16e841 /Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | |
| parent | 2365ddfc363e76ac1ac9d2e32ef9b36b85463431 (diff) | |
Better IPA shader instruction implementation (#1082)
* Fix varying interpolation on fragment shader
* Some nits
* Alignment
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs')
| -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 2de55b2d..8d092d4e 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs @@ -188,7 +188,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl case AttributeConsts.PositionX: return "gl_FragCoord.x"; case AttributeConsts.PositionY: return "gl_FragCoord.y"; case AttributeConsts.PositionZ: return "gl_FragCoord.z"; - case AttributeConsts.PositionW: return "1.0"; + case AttributeConsts.PositionW: return "gl_FragCoord.w"; } } |
