Fix invalid TriangleStrip definition

- Issue MatterHackers/MCCentral#5328
bed in design view has different colors on the two triangles of the
upper face
This commit is contained in:
John Lewin 2019-04-13 10:22:51 -07:00
parent 524bee6d12
commit d9e8f6cdde

View file

@ -117,16 +117,13 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
GL.Disable(EnableCap.Lighting);
// Draw grid background with active BedColor
GL.Color4(theme.BedColor);
GL.Begin(BeginMode.TriangleStrip);
GL.Vertex3(-width, -width, 0);
GL.Vertex3(-width, width, 0);
GL.Vertex3(width, width, 0);
GL.Vertex3(-width, -width, 0);
GL.Vertex3(-width, -width, 0);
GL.Vertex3(width, width, 0);
GL.Vertex3(width, -width, 0);
GL.Vertex3(width, width, 0);
GL.End();
GL.Disable(EnableCap.Texture2D);