diff --git a/OpenRA.Game/Graphics/Util.cs b/OpenRA.Game/Graphics/Util.cs index b61ee0f1e4..2f968a48ec 100644 --- a/OpenRA.Game/Graphics/Util.cs +++ b/OpenRA.Game/Graphics/Util.cs @@ -114,6 +114,8 @@ namespace OpenRA.Graphics public static Color PremultiplyAlpha(Color c) { + if (c.A == byte.MaxValue) + return c; var a = c.A / 255f; return Color.FromArgb(c.A, (byte)(c.R * a + 0.5f), (byte)(c.G * a + 0.5f), (byte)(c.B * a + 0.5f)); }