From a4793735eeead4ae5d54422bf8d76511094088ea Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 2 Aug 2023 14:38:26 +0200 Subject: Graph RegionRenderer.destroy(): Detach RenderState from GL instance Remove potential leak --- src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java index c6a50b411..8b3fb3a82 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java @@ -277,6 +277,7 @@ public final class RegionRenderer { sp.destroy(gl); } shaderPrograms.clear(); + rs.detachFrom(gl); rs.destroy(); initialized = false; } -- cgit v1.2.3