diff options
author | Sven Gothel <[email protected]> | 2009-06-03 19:59:19 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-06-03 19:59:19 +0000 |
commit | a1c838f382cef1c0fac5ec291f74e71cf791f8be (patch) | |
tree | fbe6dd9a9e6fa9264b2c304984eebe77377c1117 /src/demos/es1/cube/Cube.java | |
parent | 77a86250f12bd026c0fac6ba6cd6ff3f196f1d95 (diff) |
Fixes against JOGL2 revision 1922 - Multi GL Profiles, plus setenv scripts
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@338 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es1/cube/Cube.java')
-rw-r--r-- | src/demos/es1/cube/Cube.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/demos/es1/cube/Cube.java b/src/demos/es1/cube/Cube.java index 3a8a22e..8917697 100644 --- a/src/demos/es1/cube/Cube.java +++ b/src/demos/es1/cube/Cube.java @@ -85,7 +85,7 @@ public class Cube implements GLEventListener { if(!innerCube) { System.err.println("Entering initialization"); - System.err.println("GL Profile: "+GLProfile.getProfile()); + System.err.println("GL Profile: "+gl.getGLProfile()); System.err.println("GL:" + gl); System.err.println("GL_VERSION=" + gl.glGetString(gl.GL_VERSION)); System.err.println("GL_EXTENSIONS:"); @@ -292,9 +292,8 @@ public class Cube implements GLEventListener { int width = 800; int height = 480; System.err.println("Cube.run()"); - GLProfile.setProfileGLAny(); try { - GLCapabilities caps = new GLCapabilities(); + GLCapabilities caps = new GLCapabilities(null); // For emulation library, use 16 bpp caps.setRedBits(5); caps.setGreenBits(6); |