But flush over here
This commit is contained in:
@@ -155,7 +155,7 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void DrawWidgets(World world) { rootWidget.Draw(world); shpRenderer.Flush(); rgbaRenderer.Flush(); }
|
public void DrawWidgets(World world) { rootWidget.Draw(world); shpRenderer.Flush(); rgbaRenderer.Flush(); lineRenderer.Flush(); }
|
||||||
|
|
||||||
public void DrawLobby()
|
public void DrawLobby()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ namespace OpenRA.Widgets
|
|||||||
var pos = DrawPosition();
|
var pos = DrawPosition();
|
||||||
var paletteRect = new RectangleF(pos.X + Game.viewport.Location.X, pos.Y + Game.viewport.Location.Y, Bounds.Width, Bounds.Height);
|
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.FillRect(paletteRect, GetColor());
|
||||||
Game.chrome.lineRenderer.Flush();
|
|
||||||
base.Draw(world);
|
base.Draw(world);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user