aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-17 03:19:30 +0200
committerSven Gothel <[email protected]>2013-07-17 03:19:30 +0200
commit2b64ecaf53ffc9d0f45c73e2463cef9e74a64327 (patch)
treec29149fe983e6491e78ce70d8825aec79cbee66b /src/test/com
parentc1eb3d759deb6bdc088a45f1fc0ebb0db6824451 (diff)
TestBug722GLContextDrawableSwitchNewt2AWT: Test n/a if JAWT requires offscreen, i.e. no on- offscreen switch possible.
Diffstat (limited to 'src/test/com')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/glels/TestBug722GLContextDrawableSwitchNewt2AWT.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/glels/TestBug722GLContextDrawableSwitchNewt2AWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/glels/TestBug722GLContextDrawableSwitchNewt2AWT.java
index c670f4c4c..3599258e6 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/glels/TestBug722GLContextDrawableSwitchNewt2AWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/glels/TestBug722GLContextDrawableSwitchNewt2AWT.java
@@ -68,7 +68,15 @@ public class TestBug722GLContextDrawableSwitchNewt2AWT extends GLContextDrawable
@Test(timeout=180000) // TO 3 min
public void test11GLWindow2GLCanvasOnScrnGL2ES2() throws InterruptedException {
final GLCapabilities caps = getCaps(GLProfile.GL2ES2);
- if(null == caps) return;
+ if(null == caps) {
+ System.err.println("GL2ES2 n/a, test n/a.");
+ return;
+ }
+ if( jogamp.nativewindow.jawt.JAWTUtil.isOffscreenLayerRequired() ) {
+ System.err.println("JAWT required offscreen, test n/a.");
+ return;
+ }
+
GLADType gladType1 = GLADType.GLWindow;
GLADType gladType2 = GLADType.GLCanvasOnscreen;