diff options
author | Sven Gothel <[email protected]> | 2008-06-25 11:24:00 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-06-25 11:24:00 +0000 |
commit | 4553b4bfd04894f02bf516247b4757a9e92edc54 (patch) | |
tree | ceffec44546d33f78edf9ba2fe2aa1069034b8e6 /src | |
parent | 7c1206b1833d973b30e1b26d978d0d95315b55b6 (diff) |
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
Diffstat (limited to 'src')
-rwxr-xr-x | src/demos/es1/RedSquare.java | 4 |
1 files changed, 2 insertions, 2 deletions
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() |