diff options
author | Sven Gothel <[email protected]> | 2011-04-08 18:07:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-04-08 18:07:44 +0200 |
commit | ba47ef11171a8da45c718c89d1e962287b504e36 (patch) | |
tree | cb672bffcde64520e934d58d69c645cf7f4282be /src/jogl | |
parent | c004a86e24fcc1cd026a7d1d52f61e8eafc8058a (diff) |
destroy: clear vertices/triangle arrays
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PES2.java | 4 |
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) { |