From 2b64ecaf53ffc9d0f45c73e2463cef9e74a64327 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 17 Jul 2013 03:19:30 +0200 Subject: TestBug722GLContextDrawableSwitchNewt2AWT: Test n/a if JAWT requires offscreen, i.e. no on- offscreen switch possible. --- .../acore/glels/TestBug722GLContextDrawableSwitchNewt2AWT.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/test') 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; -- cgit v1.2.3