Remove legacy workaround that crashes modern Mono.

This commit is contained in:
Paul Chote
2018-12-06 16:55:18 +13:00
committed by reaperrr
parent 04359206ff
commit 98b80d44eb

View File

@@ -45,11 +45,6 @@ namespace OpenRA.Graphics
for (var i = 0; i < Size; i++)
pal.Entries[i] = palette.GetColor(i);
// hack around a mono bug -- the palette flags get set wrong.
if (Platform.CurrentPlatform != PlatformType.Windows)
typeof(ColorPalette).GetField("flags",
BindingFlags.Instance | BindingFlags.NonPublic).SetValue(pal, 1);
return pal;
}