diff options
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile00NEWT.java | 18 |
1 files changed, 17 insertions, 1 deletions
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 { |