summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/cube/CubeImmModeSink.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-11-26 18:55:31 +0000
committerSven Gothel <[email protected]>2008-11-26 18:55:31 +0000
commitc05c08f676e4aadd1ff1c8b3dfbd3b76e50b6b4b (patch)
tree4f2c26ba1aaf65ca64f14b448eaf8171473a5b8c /src/demos/es1/cube/CubeImmModeSink.java
parent71593624be3fc02a30772f8fe966b1ffacda1e55 (diff)
Reflect JOGL2 NEWT changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@298 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es1/cube/CubeImmModeSink.java')
-rw-r--r--src/demos/es1/cube/CubeImmModeSink.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/demos/es1/cube/CubeImmModeSink.java b/src/demos/es1/cube/CubeImmModeSink.java
index c0ad4aa..a3f1570 100644
--- a/src/demos/es1/cube/CubeImmModeSink.java
+++ b/src/demos/es1/cube/CubeImmModeSink.java
@@ -385,19 +385,19 @@ public class CubeImmModeSink implements GLEventListener {
System.err.println("CubeImmModeSink.run()");
GLProfile.setProfileGLAny();
try {
- Window nWindow = null;
- if(0!=(type&USE_AWT)) {
- Display nDisplay = NewtFactory.createDisplay(NewtFactory.AWT, null); // local display
- Screen nScreen = NewtFactory.createScreen(NewtFactory.AWT, nDisplay, 0); // screen 0
- nWindow = NewtFactory.createWindow(NewtFactory.AWT, nScreen, 0); // dummy VisualID
- }
-
GLCapabilities caps = new GLCapabilities();
// For emulation library, use 16 bpp
caps.setRedBits(5);
caps.setGreenBits(6);
caps.setBlueBits(5);
caps.setDepthBits(16);
+
+ Window nWindow = null;
+ if(0!=(type&USE_AWT)) {
+ Display nDisplay = NewtFactory.createDisplay(NewtFactory.AWT, null); // local display
+ Screen nScreen = NewtFactory.createScreen(NewtFactory.AWT, nDisplay, 0); // screen 0
+ nWindow = NewtFactory.createWindow(NewtFactory.AWT, nScreen, caps);
+ }
GLWindow window = GLWindow.create(nWindow, caps);
window.addGLEventListener(this);