summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-05-30 07:24:43 +0000
committerKenneth Russel <[email protected]>2008-05-30 07:24:43 +0000
commit98072b0c325efb3a226dbf1f8e74c5db88d0a862 (patch)
tree1597d8a5d2ee04790446df98a042dc44ff628aa5 /src
parentbd41f318c5ef5aa83ba020c3529c971ba6dbc47f (diff)
Switched to using glClearColorx as glClearColor doesn't seem to exist
on the Sony X1. Added debugging printout of available extensions. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@232 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/es1/RedSquare.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index fb02079..d1e78be 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -42,6 +42,9 @@ public class RedSquare {
//
System.out.println("Entering initialization");
+ System.out.println("GL_VERSION=" + gl.glGetString(GL.GL_VERSION));
+ System.out.println("GL_EXTENSIONS:");
+ System.out.println(" " + gl.glGetString(GL.GL_EXTENSIONS));
// Allocate vertex arrays
FloatBuffer colors = BufferUtil.newFloatBuffer(16);
@@ -62,7 +65,7 @@ public class RedSquare {
gl.glColorPointer(4, GL.GL_FLOAT, 0, colors);
// OpenGL Render Settings
- gl.glClearColor(0, 0, 0, 1);
+ gl.glClearColorx(0, 0, 0, 65535);
gl.glEnable(GL.GL_DEPTH_TEST);
//----------------------------------------------------------------------