diff options
Diffstat (limited to 'src/demos/particles/engine/GLComponent.java')
-rwxr-xr-x | src/demos/particles/engine/GLComponent.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demos/particles/engine/GLComponent.java b/src/demos/particles/engine/GLComponent.java index 52bf6af..1b56f85 100755 --- a/src/demos/particles/engine/GLComponent.java +++ b/src/demos/particles/engine/GLComponent.java @@ -70,6 +70,10 @@ public class GLComponent extends GLCanvas implements GLEventListener { return caps; } + public void dispose(GLAutoDrawable drawable) { + this.engine=null; + } + public void display(GLAutoDrawable drawable) { final GL2 gl = drawable.getGL().getGL2(); engine.draw(gl); |