From 386f9652e0169b0aa7f6ead1bf230d5d67d00a38 Mon Sep 17 00:00:00 2001 From: Sven Gothel 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/Label.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java index c270903d9..b8edb74e2 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java @@ -205,7 +205,7 @@ public class Label extends GraphShape { @Override protected void addShapeToRegion(final GLProfile glp, final GL2ES2 gl) { final int[] vertIndCount = TextRegionUtil.countStringRegion(font, text, new int[2]); - updateGLRegion(glp, gl, null, vertIndCount[0], vertIndCount[1]); + resetGLRegion(glp, gl, null, vertIndCount[0], vertIndCount[1]); AABBox fbox = font.getGlyphBounds(text, tempT2, tempT3); tempT1.setToScale(fontScale, fontScale); -- cgit v1.2.3