diff options
author | Sven Gothel <[email protected]> | 2009-06-03 19:59:19 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-06-03 19:59:19 +0000 |
commit | a1c838f382cef1c0fac5ec291f74e71cf791f8be (patch) | |
tree | fbe6dd9a9e6fa9264b2c304984eebe77377c1117 /src/demos/j2d/TextCube.java | |
parent | 77a86250f12bd026c0fac6ba6cd6ff3f196f1d95 (diff) |
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
Diffstat (limited to 'src/demos/j2d/TextCube.java')
-rwxr-xr-x | src/demos/j2d/TextCube.java | 6 |
1 files changed, 4 insertions, 2 deletions
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); |