diff options
author | Sven Gothel <[email protected]> | 2023-04-28 12:19:07 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-28 12:19:07 +0200 |
commit | 386f9652e0169b0aa7f6ead1bf230d5d67d00a38 (patch) | |
tree | a20076c4b3cf0ebe247f276dfa4e3bd9968a33a2 /src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java | |
parent | b7ef5e6fac72e0ed1c19eae27801c14772c2ba46 (diff) |
GraphUI GraphShape: {update->reset}GLRegion() and reserve vertices+indices if (rect) border is present
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |