summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/Info.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es1/Info.java')
-rwxr-xr-xsrc/demos/es1/Info.java5
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));