From 3fd6b55f04df0a5751985be1440809bc591e02d1 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 24 May 2021 04:38:38 -0300 Subject: Fix value of constant vertex attributes (#2307) --- Ryujinx.Graphics.OpenGL/VertexArray.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.OpenGL/VertexArray.cs') diff --git a/Ryujinx.Graphics.OpenGL/VertexArray.cs b/Ryujinx.Graphics.OpenGL/VertexArray.cs index 17703cd1..b31bf723 100644 --- a/Ryujinx.Graphics.OpenGL/VertexArray.cs +++ b/Ryujinx.Graphics.OpenGL/VertexArray.cs @@ -80,7 +80,7 @@ namespace Ryujinx.Graphics.OpenGL if (attrib.IsZero) { // Disabling the attribute causes the shader to read a constant value. - // The value is configurable, but by default is a vector of (0, 0, 0, 1). + // We currently set the constant to (0, 0, 0, 0). DisableVertexAttrib(index); } else @@ -176,6 +176,7 @@ namespace Ryujinx.Graphics.OpenGL { _vertexAttribsInUse &= ~mask; GL.DisableVertexAttribArray(index); + GL.VertexAttrib4(index, 0f, 0f, 0f, 0f); } } -- cgit v1.2.3