Skip to content

Commit

Permalink
Fix mixture blending not blending alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 19, 2024
1 parent 1ff2b65 commit dc00efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Framework/Graphics/BlendingParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public struct BlendingParameters : IEquatable<BlendingParameters>
Source = BlendingType.One,
Destination = BlendingType.OneMinusSrcAlpha,
SourceAlpha = BlendingType.One,
DestinationAlpha = BlendingType.One,
DestinationAlpha = BlendingType.OneMinusSrcAlpha,
RGBEquation = BlendingEquation.Add,
AlphaEquation = BlendingEquation.Add,
};
Expand Down Expand Up @@ -132,7 +132,7 @@ public void ApplyDefaultToInherited()
SourceAlpha = BlendingType.One;

if (DestinationAlpha == BlendingType.Inherit)
DestinationAlpha = BlendingType.One;
DestinationAlpha = BlendingType.OneMinusSrcAlpha;

if (RGBEquation == BlendingEquation.Inherit)
RGBEquation = BlendingEquation.Add;
Expand Down

0 comments on commit dc00efe

Please sign in to comment.