summaryrefslogtreecommitdiffstats
path: root/src/demos/es1
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-25 11:24:00 +0000
committerSven Gothel <[email protected]>2008-06-25 11:24:00 +0000
commit4553b4bfd04894f02bf516247b4757a9e92edc54 (patch)
treeceffec44546d33f78edf9ba2fe2aa1069034b8e6 /src/demos/es1
parent7c1206b1833d973b30e1b26d978d0d95315b55b6 (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/demos/es1')
-rwxr-xr-xsrc/demos/es1/RedSquare.java4
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()