diff options
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/opengl/GLWindow.java | 8 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/android/MD.java | 20 |
2 files changed, 7 insertions, 21 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java index 92f57577d..dc2db7f74 100644 --- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java +++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java @@ -35,7 +35,6 @@ package com.jogamp.newt.opengl; import java.io.PrintStream; -import java.util.List; import com.jogamp.common.GlueGenVersion; import com.jogamp.common.util.VersionUtil; @@ -901,12 +900,9 @@ public class GLWindow implements GLAutoDrawable, Window, NEWTEventConsumer, FPSC System.err.println(GlueGenVersion.getInstance()); System.err.println(JoglVersion.getInstance()); + System.err.println(JoglVersion.getDefaultOpenGLInfo(null).toString()); + final GLProfile glp = GLProfile.getDefault(); - final GLDrawableFactory factory = GLDrawableFactory.getFactory(glp); - final List<GLCapabilitiesImmutable> availCaps = factory.getAvailableCapabilities(null); - for(int i=0; i<availCaps.size(); i++) { - System.err.println(availCaps.get(i)); - } final GLCapabilitiesImmutable caps = new GLCapabilities( glp ); GLWindow glWindow = GLWindow.create(caps); diff --git a/src/newt/classes/jogamp/newt/driver/android/MD.java b/src/newt/classes/jogamp/newt/driver/android/MD.java index 06f787233..150dea9c7 100644 --- a/src/newt/classes/jogamp/newt/driver/android/MD.java +++ b/src/newt/classes/jogamp/newt/driver/android/MD.java @@ -27,11 +27,6 @@ */ package jogamp.newt.driver.android; -import java.util.List; - -import javax.media.opengl.GLDrawableFactory; -import javax.media.opengl.GLProfile; - import com.jogamp.common.GlueGenVersion; import com.jogamp.common.os.Platform; import com.jogamp.common.util.VersionUtil; @@ -40,22 +35,17 @@ import com.jogamp.opengl.JoglVersion; public class MD { public static final String TAG = "JogAmp.NEWT"; - public static String getInfo() { - - StringBuffer sb = new StringBuffer(); + public static String getInfo() { + StringBuilder sb = new StringBuilder(); sb.append(VersionUtil.getPlatformInfo()).append(Platform.NEWLINE) .append(GlueGenVersion.getInstance()).append(Platform.NEWLINE) .append(JoglVersion.getInstance()).append(Platform.NEWLINE) .append(Platform.NEWLINE); - final GLDrawableFactory factory = GLDrawableFactory.getEGLFactory(); - final List/*<GLCapabilitiesImmutable>*/ availCaps = factory.getAvailableCapabilities(null); - for(int i=0; i<availCaps.size(); i++) { - sb.append(availCaps.get(i)).append(Platform.NEWLINE); - } - - return sb.toString(); + JoglVersion.getDefaultOpenGLInfo(sb); + + return sb.toString(); } public static void main(String args[]) { |