From 98072b0c325efb3a226dbf1f8e74c5db88d0a862 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 30 May 2008 07:24:43 +0000 Subject: 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 --- src/demos/es1/RedSquare.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/demos/es1/RedSquare.java') 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); //---------------------------------------------------------------------- -- cgit v1.2.3