From 386f9652e0169b0aa7f6ead1bf230d5d67d00a38 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Fri, 28 Apr 2023 12:19:07 +0200
Subject: GraphUI GraphShape: {update->reset}GLRegion() and reserve
 vertices+indices if (rect) border is present

---
 src/graphui/classes/com/jogamp/graph/ui/shapes/GlyphShape.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/GlyphShape.java')

diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/GlyphShape.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/GlyphShape.java
index dd4398c63..c579cb943 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/shapes/GlyphShape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/GlyphShape.java
@@ -192,7 +192,7 @@ public class GlyphShape extends GraphShape {
             tmp.setToTranslation(-sbox.getMinX(), -sbox.getMinY() + glyph.getBounds().getMinY());
             shape.setSharpness(oshapeSharpness);
 
-            updateGLRegion(glp, gl, null, regionVertCount, regionIdxCount);
+            resetGLRegion(glp, gl, null, regionVertCount, regionIdxCount);
             region.addOutlineShape(shape, tmp, rgbaColor);
             box.resize(tmp.transform(sbox, new AABBox()));
             setRotationPivot( box.getCenter() );
-- 
cgit v1.2.3