diff options
author | Sven Gothel <[email protected]> | 2013-07-05 02:37:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-07-05 02:37:04 +0200 |
commit | 96f5c1ab3ada336bad8704521d47f7db5031334c (patch) | |
tree | 2f34bd22a46068e7739f8064ea1166f76296bad9 | |
parent | c8f7884cad992d327f6acab4d5373c86a1077547 (diff) |
TestScreenMode*: Stop animator before destroying window - be nice.
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java | 2 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02bNEWT.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java index 15cc87ca7..7ea879da2 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java @@ -145,6 +145,7 @@ public class TestScreenMode02aNEWT extends UITestCase { if(monitorModes.size()==1) { // no support .. System.err.println("Your platform has no ScreenMode change support, sorry"); + animator.stop(); destroyWindow(window); return; } @@ -163,6 +164,7 @@ public class TestScreenMode02aNEWT extends UITestCase { if(null==monitorModes || Platform.getOSType() == Platform.OSType.MACOS ) { // no rotation support .. System.err.println("Your platform has no rotation support, sorry"); + animator.stop(); destroyWindow(window); return; } diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02bNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02bNEWT.java index 790c4f324..547dc596e 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02bNEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02bNEWT.java @@ -173,6 +173,7 @@ public class TestScreenMode02bNEWT extends UITestCase { if(null==monitorModes || Platform.getOSType() == Platform.OSType.MACOS ) { // no rotation support .. System.err.println("Your platform has no rotation support, sorry"); + animator.stop(); destroyWindow(window); return; } @@ -196,6 +197,7 @@ public class TestScreenMode02bNEWT extends UITestCase { System.err.println("[0] has current: "+mmCurrent+", changeOK "+smOk); if( !smOk ) { System.err.println("ERROR: Full MonitorMode w/ rotation failure - Expected on some platforms (NV driver) - Tolerated for now."); + animator.stop(); destroyWindow(window); return; } |