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:
parent
524bee6d12
commit
d9e8f6cdde
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue