diff --git a/Ryujinx.Graphics/Gal/GalPipelineState.cs b/Ryujinx.Graphics/Gal/GalPipelineState.cs index 8deb68b48f..3b672b011b 100644 --- a/Ryujinx.Graphics/Gal/GalPipelineState.cs +++ b/Ryujinx.Graphics/Gal/GalPipelineState.cs @@ -1,12 +1,14 @@ -namespace Ryujinx.Graphics.Gal +using System; + +namespace Ryujinx.Graphics.Gal { - public struct ColorMaskState + public struct ColorMaskState : IEquatable { private static readonly ColorMaskState _Default = new ColorMaskState() { - Red = true, + Red = true, Green = true, - Blue = true, + Blue = true, Alpha = true }; @@ -16,6 +18,11 @@ public bool Green; public bool Blue; public bool Alpha; + + public bool Equals(ColorMaskState other) + { + return other.Red != Red || other.Green != Green || other.Blue != Blue || other.Alpha != Alpha; + } } public struct BlendState