summaryrefslogtreecommitdiffstats
path: root/src/demos
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-11-19 17:22:36 +0000
committerSven Gothel <[email protected]>2008-11-19 17:22:36 +0000
commitc91b1be4cd9ab39be883f3578fcc4da3511e1ee1 (patch)
tree7fa9fdbca720f38806da8d02266692f2388d1150 /src/demos
parentd14ce72a37dd82b7e5b2a40acaed1281fb117ead (diff)
GLInfo: Print drawable capabilities
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@289 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos')
-rwxr-xr-xsrc/demos/GLInfo.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/demos/GLInfo.java b/src/demos/GLInfo.java
index 6e7ef73..2e5eb1a 100755
--- a/src/demos/GLInfo.java
+++ b/src/demos/GLInfo.java
@@ -31,6 +31,7 @@ public class GLInfo implements GLEventListener {
caps.setGreenBits(6);
caps.setBlueBits(5);
caps.setDepthBits(16);
+ System.err.println("GLCapabilities PRE : "+caps);
window = GLWindow.create(nWindow, caps);
window.addGLEventListener(this);
@@ -54,6 +55,7 @@ public class GLInfo implements GLEventListener {
public void init(GLAutoDrawable drawable) {
GL gl = drawable.getGL();
+ System.err.println("GLCapabilities POST: "+drawable.getChosenGLCapabilities());
System.err.println("GL Profile: "+GLProfile.getProfile());
System.err.println("GL:" + gl);
System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION));