From 8a850ea69d90fa68efecb52ba8dc6ec3938505d7 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 26 Sep 2010 02:32:02 +0200 Subject: NEWT: Fix WindowImpl: Bring back 'isValid()' test no screen!=null in destroy() ; DisplayImpl: refCount reset --- .../test/junit/jogl/awt/TestSwingAWTUsageBeforeJOGLInitBug411.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/junit/com/jogamp') diff --git a/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWTUsageBeforeJOGLInitBug411.java b/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWTUsageBeforeJOGLInitBug411.java index 6dea35769..ac6b61586 100644 --- a/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWTUsageBeforeJOGLInitBug411.java +++ b/src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWTUsageBeforeJOGLInitBug411.java @@ -294,6 +294,9 @@ public class TestSwingAWTUsageBeforeJOGLInitBug411 { GLProfile glp = GLProfile.getDefault(); GLCapabilities caps = new GLCapabilities(glp); + GLWindow winDummy = GLWindow.create(caps); + winDummy.addGLEventListener(new Gears()); + GLWindow win0 = GLWindow.create(caps); win0.setSize(100,100); win0.setVisible(true); @@ -306,6 +309,8 @@ public class TestSwingAWTUsageBeforeJOGLInitBug411 { runTestGL(newtCanvasAWT, (GLAutoDrawable)newtCanvasAWT.getNEWTChild()); newtCanvasAWT.destroy(true); + winDummy.destroy(true); + anim0.stop(); win0.destroy(true); } -- cgit v1.2.3