mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-31 05:00:34 +00:00
Render all lines in one pass
This commit is contained in:
parent
4611851122
commit
652ff5aaf3
1 changed files with 2 additions and 2 deletions
|
@ -1945,12 +1945,12 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
|
|
||||||
// Draw
|
// Draw
|
||||||
graphics.Shaders.Display2D.Begin();
|
graphics.Shaders.Display2D.Begin();
|
||||||
|
graphics.Shaders.Display2D.BeginPass(0);
|
||||||
foreach (FlatVertex[] v in verts)
|
foreach (FlatVertex[] v in verts)
|
||||||
{
|
{
|
||||||
graphics.Shaders.Display2D.BeginPass(0);
|
|
||||||
graphics.Device.DrawUserPrimitives(PrimitiveType.TriangleStrip, 0, 2, v);
|
graphics.Device.DrawUserPrimitives(PrimitiveType.TriangleStrip, 0, 2, v);
|
||||||
graphics.Shaders.Display2D.EndPass();
|
|
||||||
}
|
}
|
||||||
|
graphics.Shaders.Display2D.EndPass();
|
||||||
graphics.Shaders.Display2D.End();
|
graphics.Shaders.Display2D.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue