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/Info.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/Info.java')
-rwxr-xr-x | src/demos/es1/Info.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/demos/es1/Info.java b/src/demos/es1/Info.java index de3d16d..17fe5b1 100755 --- a/src/demos/es1/Info.java +++ b/src/demos/es1/Info.java @@ -16,9 +16,8 @@ public class Info implements GLEventListener { int width = 10; int height = 10; System.err.println("Info.run()"); - GLProfile.setProfileGL2ES1(); try { - GLCapabilities caps = new GLCapabilities(); + GLCapabilities caps = new GLCapabilities(GLProfile.GetProfileGL2ES1()); // For emulation library, use 16 bpp caps.setRedBits(5); caps.setGreenBits(6); @@ -54,7 +53,7 @@ public class Info implements GLEventListener { public void init(GLAutoDrawable drawable) { GL gl = drawable.getGL(); - System.err.println("GL Profile: "+GLProfile.getProfile()); + System.err.println("GL Profile: "+gl.getGLProfile()); System.err.println("GL_VERSION: " + gl.glGetString(GL.GL_VERSION)); System.err.println("GL_EXTENSIONS: "); System.err.println(" " + gl.glGetString(GL.GL_EXTENSIONS)); |