diff options
Diffstat (limited to 'src/demos/cg/runtime_ogl')
-rw-r--r-- | src/demos/cg/runtime_ogl/cgGL_vertex_example.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java index 1f165c8..f85e26c 100644 --- a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java +++ b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java @@ -36,7 +36,6 @@ package demos.cg.runtime_ogl; import com.sun.opengl.cg.*; import javax.media.opengl.*; import javax.media.opengl.glu.*; -import com.sun.opengl.utils.*; import java.awt.*; import java.awt.event.*; @@ -274,22 +273,17 @@ public class cgGL_vertex_example implements GLEventListener frame.add(canvas); frame.setSize(500, 500); - final Animator animator = new Animator(canvas); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { // Run this on another thread than the AWT event queue to - // make sure the call to Animator.stop() completes before - // exiting + // avoid deadlocks on shutdown on some platforms new Thread(new Runnable() { public void run() { - animator.stop(); System.exit(0); } }).start(); } }); frame.show(); - animator.start(); } - } |