From a1c838f382cef1c0fac5ec291f74e71cf791f8be Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 3 Jun 2009 19:59:19 +0000 Subject: 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 --- src/demos/j2d/TextCube.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/demos/j2d/TextCube.java') diff --git a/src/demos/j2d/TextCube.java b/src/demos/j2d/TextCube.java index 1ef3144..5719a8f 100755 --- a/src/demos/j2d/TextCube.java +++ b/src/demos/j2d/TextCube.java @@ -51,6 +51,8 @@ import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.geom.Rectangle2D; import javax.media.opengl.GL; +import javax.media.opengl.GLCapabilities; +import javax.media.opengl.GLProfile; import javax.media.opengl.GL2ES1; import javax.media.opengl.GL2; import javax.media.opengl.GLAutoDrawable; @@ -76,8 +78,8 @@ public class TextCube extends Demo { Frame frame = new Frame("Text Cube"); frame.setLayout(new BorderLayout()); - GLProfile.setProfile("GL2"); - GLCanvas canvas = new GLCanvas(); + GLCapabilities caps = new GLCapabilities(GLProfile.GetProfile(GLProfile.GL2)); + GLCanvas canvas = new GLCanvas(caps); final TextCube demo = new TextCube(); canvas.addGLEventListener(demo); -- cgit v1.2.3