From ba47ef11171a8da45c718c89d1e962287b504e36 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 8 Apr 2011 18:07:44 +0200 Subject: destroy: clear vertices/triangle arrays --- src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/jogamp/graph/curve/opengl') diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java index f1c82f83c..17962a297 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java +++ b/src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java @@ -36,8 +36,6 @@ import javax.media.opengl.GLContext; import javax.media.opengl.GLUniformData; import javax.media.opengl.fixedfunc.GLMatrixFunc; -import jogamp.opengl.Debug; - import com.jogamp.graph.geom.AABBox; import com.jogamp.graph.geom.Triangle; import com.jogamp.graph.geom.Vertex; @@ -311,6 +309,8 @@ public class VBORegion2PES2 implements Region { destroyFbo(gl); destroyTxtAttr(gl); destroyFboAttr(gl); + triangles.clear(); + vertices.clear(); } final void destroyFbo(GL2ES2 gl) { if(null != fbo) { -- cgit v1.2.3