summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-09-26 02:32:02 +0200
committerSven Gothel <[email protected]>2010-09-26 02:32:02 +0200
commit8a850ea69d90fa68efecb52ba8dc6ec3938505d7 (patch)
tree1f1e23d7a2e46f7a38716abf9f274a2e0f043670 /src/junit/com/jogamp/test
parenta831e7d5c5a9c1e82f70713f7d07946cfc562041 (diff)
NEWT: Fix WindowImpl: Bring back 'isValid()' test no screen!=null in destroy() ; DisplayImpl: refCount reset
Diffstat (limited to 'src/junit/com/jogamp/test')
-rw-r--r--src/junit/com/jogamp/test/junit/jogl/awt/TestSwingAWTUsageBeforeJOGLInitBug411.java5
1 files changed, 5 insertions, 0 deletions
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);
}