From 4553b4bfd04894f02bf516247b4757a9e92edc54 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 25 Jun 2008 11:24:00 +0000 Subject: Fixes; Auto GL profile selection git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@246 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/es1/RedSquare.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demos/es1') diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java index 2926746..81713ea 100755 --- a/src/demos/es1/RedSquare.java +++ b/src/demos/es1/RedSquare.java @@ -37,7 +37,7 @@ public class RedSquare implements MouseListener { public static void main(String[] args) { System.out.println("RedSquare.main()"); - GLProfile.setProfile(GLProfile.GLES1); + GLProfile.setProfileGL2ES1(); try { Display display = NewtFactory.createDisplay(null); // local display Screen screen = NewtFactory.createScreen(display, 0); // screen 0 @@ -67,7 +67,7 @@ public class RedSquare implements MouseListener { context.makeCurrent(); GL2ES1 gl = context.getGL().getGL2ES1(); - GLU glu = new javax.media.opengl.glu.es1.GLUes1(); + GLU glu = GLU.createGLU(gl); //---------------------------------------------------------------------- // Code for GLEventListener.init() -- cgit v1.2.3