Don't forget to flush
This commit is contained in:
@@ -55,6 +55,7 @@ namespace OpenRA.Widgets
|
||||
var pos = DrawPosition();
|
||||
var paletteRect = new RectangleF(pos.X + Game.viewport.Location.X, pos.Y + Game.viewport.Location.Y, Bounds.Width, Bounds.Height);
|
||||
Game.chrome.lineRenderer.FillRect(paletteRect, GetColor());
|
||||
Game.chrome.lineRenderer.Flush();
|
||||
base.Draw(world);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user