aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/curve/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-08 18:07:44 +0200
committerSven Gothel <[email protected]>2011-04-08 18:07:44 +0200
commitba47ef11171a8da45c718c89d1e962287b504e36 (patch)
treecb672bffcde64520e934d58d69c645cf7f4282be /src/jogl/classes/jogamp/graph/curve/opengl
parentc004a86e24fcc1cd026a7d1d52f61e8eafc8058a (diff)
destroy: clear vertices/triangle arrays
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/opengl')
-rw-r--r--src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java4
1 files changed, 2 insertions, 2 deletions
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) {