diff options
author | Rami Santina <[email protected]> | 2011-05-21 17:49:08 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-05-21 17:49:08 +0300 |
commit | 5ea211cde39be9669d1f2f289abbba460398f82e (patch) | |
tree | 79a3db238a55faa6aebad7493e772065c69411b5 /src/jogl/classes/jogamp/graph/curve/text | |
parent | 9e599f84bc02ef2db63b6eb1cadfa33f56dddd66 (diff) |
Remove implicit for loops reduces temp objects
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/text')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java b/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java index b47612f51..ed51cce98 100644 --- a/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java +++ b/src/jogl/classes/jogamp/graph/curve/text/GlyphShape.java @@ -80,6 +80,7 @@ public class GlyphShape { private void addOutlineVerticesFromGlyphVector(float[] coords, int segmentType){ switch(segmentType) { case PathIterator.SEG_MOVETO: + shape.closeLastOutline(); shape.addEmptyOutline(); addVertexToLastOutline(vertexFactory().create(coords, 0, 2, true)); numVertices++; |