From b65e1e76d413b70e5593173e6bd36d30675554a6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 7 Sep 2011 01:33:42 +0200 Subject: GLWindows Lifecycle Destroy: Don't remove itself from animator-ctrl - recreation is possible --- src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index 37ca7afc7..638e4a462 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -237,7 +237,7 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC public final InsetsImmutable getInsets() { return window.getInsets(); } - + public final void setPosition(int x, int y) { window.setPosition(x, y); } @@ -349,12 +349,6 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC context = null; drawable = null; - GLAnimatorControl ctrl = GLWindow.this.getAnimator(); - if ( null!=ctrl ) { - ctrl.remove(GLWindow.this); - } - // helper=null; // pending events .. - if(Window.DEBUG_IMPLEMENTATION) { System.err.println("GLWindow.destroy() "+Thread.currentThread()+", fin"); } -- cgit v1.2.3