diff options
author | Michael Bien <[email protected]> | 2010-02-13 22:16:28 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-13 22:16:28 +0100 |
commit | f386e227c0cd30bf10b90acccd77d4845dc45783 (patch) | |
tree | 84e7fd80b0b09f60c546e15d6a72bcfe3b682e9f /src/com/mbien/opencl/demos/joglinterop | |
parent | 4e34732609bfa569aae8e89fe0304a7e56628256 (diff) |
initial import of David Bucciarelli's Julia3d demo ported to java using OpenCL and JOGL2.
Diffstat (limited to 'src/com/mbien/opencl/demos/joglinterop')
-rw-r--r-- | src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java index 9dfaf5a..8febd4c 100644 --- a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java +++ b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java @@ -6,8 +6,6 @@ import com.mbien.opencl.CLGLContext; import com.mbien.opencl.CLKernel; import com.mbien.opencl.CLProgram; import com.sun.opengl.util.Animator; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; import java.io.IOException; import javax.media.opengl.DebugGL2; import javax.media.opengl.GL2; @@ -102,13 +100,7 @@ public class GLCLInteroperabilityDemo implements GLEventListener { usi.init(canvas); JFrame frame = new JFrame("JOGL-JOCL Interoperability Example"); - frame.addWindowListener(new WindowAdapter() { - @Override - public void windowClosed(WindowEvent e) { - deinit(); - } - - }); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(canvas); frame.setSize(width, height); @@ -262,11 +254,6 @@ public class GLCLInteroperabilityDemo implements GLEventListener { public void dispose(GLAutoDrawable drawable) { } - private void deinit() { - clContext.release(); // only for demonstration purposes, JVM will cleanup on exit anyway - System.exit(0); - } - public static void main(String[] args) { new GLCLInteroperabilityDemo(); } |