summaryrefslogtreecommitdiffstats
path: root/src/graphui
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-20 06:16:16 +0100
committerSven Gothel <[email protected]>2023-03-20 06:16:16 +0100
commit253a91c252eed70edaee25cca3288cafa6de8071 (patch)
tree7b0ff1f508b85bc5aa59f0e8ca7ef90bec2c50a8 /src/graphui
parentac53d2e06c14e808529d8e653a9ec6a1438acfc0 (diff)
GraphUI GLButton: Add missing destroyImpl(..) to destroy the ImageSequence and FBO-GLAD
Diffstat (limited to 'src/graphui')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/GLButton.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/GLButton.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/GLButton.java
index 4ddb44606..8b81eb4f2 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/GLButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/GLButton.java
@@ -92,6 +92,12 @@ public class GLButton extends TexSeqButton {
public final GLOffscreenAutoDrawable.FBO getFBOAutoDrawable() { return fboGLAD; }
@Override
+ protected void destroyImpl(final GL2ES2 gl, final RegionRenderer renderer) {
+ ((ImageSequence)texSeq).destroy(gl);
+ fboGLAD.destroy();
+ }
+
+ @Override
public void draw(final GL2ES2 gl, final RegionRenderer renderer, final int[] sampleCount) {
final int[/*2*/] surfaceSize = getSurfaceSize(renderer.getMatrix(), renderer.getViewport(), new int[2]);
final boolean got_sz = null != surfaceSize && 0 < surfaceSize[0] && 0 < surfaceSize[1];