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/Button.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/Button.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java index 3473c2c68..9a6ba7bc2 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java @@ -105,7 +105,7 @@ public class Button extends BaseButton { // Sum Region buffer size of base-shape + text final int[/*2*/] vertIndexCount = Region.countOutlineShape(shape, new int[2]); TextRegionUtil.countStringRegion(label.getFont(), label.getText(), vertIndexCount); - updateGLRegion(glp, gl, null, vertIndexCount[0], vertIndexCount[1]); + resetGLRegion(glp, gl, null, vertIndexCount[0], vertIndexCount[1]); region.addOutlineShape(shape, null, rgbaColor); |