From afb79fc769e2e94c72f8d5749706cfc9192f2374 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Tue, 4 Nov 2014 09:29:13 +0100 Subject: [PATCH] Fixing winding: PShapeOpenGL is solid by default --- core/src/processing/opengl/PShapeOpenGL.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/processing/opengl/PShapeOpenGL.java b/core/src/processing/opengl/PShapeOpenGL.java index a771ff053..d41f3132a 100644 --- a/core/src/processing/opengl/PShapeOpenGL.java +++ b/core/src/processing/opengl/PShapeOpenGL.java @@ -173,7 +173,7 @@ public class PShapeOpenGL extends PShape { protected boolean needBufferInit = false; // Flag to indicate if the shape can have holes or not. - protected boolean solid; + protected boolean solid = true; protected boolean breakShape = false; protected boolean shapeCreated = false; @@ -2995,7 +2995,7 @@ public class PShapeOpenGL extends PShape { if (rounded) { saveBezierVertexSettings(); inGeo.addRect(a, b, c, d, tl, tr, br, bl, stroke); - tessellator.tessellatePolygon(false, true, true); + tessellator.tessellatePolygon(true, true, true); restoreBezierVertexSettings(); } else { inGeo.addRect(a, b, c, d, stroke); @@ -3289,7 +3289,7 @@ public class PShapeOpenGL extends PShape { saveCurveVertexSettings(); tessellator.resetCurveVertexCount(); } - tessellator.tessellatePolygon(false, close, true); + tessellator.tessellatePolygon(true, close, true); if (bez || quad) restoreBezierVertexSettings(); if (curv) restoreCurveVertexSettings(); }