Render all lines in one pass

This commit is contained in:
MascaraSnake 2016-01-12 00:35:42 +01:00
parent 4611851122
commit 652ff5aaf3

View file

@ -1945,12 +1945,12 @@ namespace CodeImp.DoomBuilder.Rendering
// Draw
graphics.Shaders.Display2D.Begin();
graphics.Shaders.Display2D.BeginPass(0);
foreach (FlatVertex[] v in verts)
{
graphics.Shaders.Display2D.BeginPass(0);
graphics.Device.DrawUserPrimitives(PrimitiveType.TriangleStrip, 0, 2, v);
graphics.Shaders.Display2D.EndPass();
}
graphics.Shaders.Display2D.EndPass();
graphics.Shaders.Display2D.End();
}