aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-02 14:38:26 +0200
committerSven Gothel <[email protected]>2023-08-02 14:38:26 +0200
commita4793735eeead4ae5d54422bf8d76511094088ea (patch)
tree3f53d6e9d6931adb48e350b17fe56c050bf7981f /src/jogl/classes
parent463a5cd983f0dfe1aea54574c25b532645b0502f (diff)
Graph RegionRenderer.destroy(): Detach RenderState from GL instance
Remove potential leak
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java1
1 files changed, 1 insertions, 0 deletions
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;
}