From a444e03c8a346492de400b203d22f3f6c0067628 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 25 Oct 2013 04:44:39 +0200 Subject: TestGLProfile00NEWT: Dump Desktop's and EGL's default-device GLProfiles --- .../test/junit/jogl/acore/TestGLProfile00NEWT.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/test/com/jogamp/opengl') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java index 68562de4e..df182c5d3 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java @@ -36,6 +36,7 @@ import org.junit.runners.MethodSorters; import javax.media.opengl.*; +import com.jogamp.common.os.Platform; import com.jogamp.opengl.JoglVersion; import com.jogamp.opengl.test.junit.util.UITestCase; @@ -45,7 +46,22 @@ public class TestGLProfile00NEWT extends UITestCase { @Test public void testInitSingleton() throws InterruptedException { GLProfile.initSingleton(); - System.err.println(JoglVersion.getDefaultOpenGLInfo(null, null, false)); + System.err.println("Desktop"); + GLDrawableFactory desktopFactory = GLDrawableFactory.getDesktopFactory(); + if( null != desktopFactory ) { + System.err.println(JoglVersion.getDefaultOpenGLInfo(desktopFactory.getDefaultDevice(), null, false)); + System.err.println(Platform.getNewline()+Platform.getNewline()+Platform.getNewline()); + } else { + System.err.println("\tNULL"); + } + + System.err.println("EGL"); + GLDrawableFactory eglFactory = GLDrawableFactory.getEGLFactory(); + if( null != eglFactory ) { + System.err.println(JoglVersion.getDefaultOpenGLInfo(eglFactory.getDefaultDevice(), null, false)); + } else { + System.err.println("\tNULL"); + } } public static void main(String args[]) throws IOException { -- cgit v1.2.3