From c777df3147deb5a97b4dced9a1629cacd8a6db16 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 1 Aug 2023 18:58:00 +0200 Subject: UISceneDemoU01a: Destory textRegion @ dispose --- src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemoU01a.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/demos/com/jogamp/opengl') diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemoU01a.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemoU01a.java index 4eb5f90e3..27bc34b58 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemoU01a.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemoU01a.java @@ -353,6 +353,7 @@ public class UISceneDemoU01a { @Override public void dispose(final GLAutoDrawable drawable) { final GL2ES2 gl = drawable.getGL().getGL2ES2(); + textRegion.destroy(gl); shape.destroy(gl, renderer); renderer.destroy(gl); System.err.println("Destroyed"); -- cgit v1.2.3