From 723b7628d18489d3cee27284ab804735da98e5d8 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 17 Aug 2018 17:46:26 -0300 Subject: [PATCH] Disable multiple attachments in shaders --- Ryujinx.Graphics/Gal/Shader/GlslDecl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs b/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs index 74404ced50..56745bc150 100644 --- a/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs +++ b/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs @@ -100,7 +100,8 @@ namespace Ryujinx.Graphics.Gal.Shader if (ShaderType == GalShaderType.Fragment) { - for (int Index = 0; Index < MaxFrameBufferAttachments; Index++) + //Note: Replace 1 with MaxFrameBufferAttachments when attachments start to work + for (int Index = 0; Index < 1; Index++) { m_Gprs.Add(Index * 4, new ShaderDeclInfo(FragmentOutputName + Index, Index * 4, false, 0, 4)); }