summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-05-30 14:38:32 +0000
committerSven Gothel <[email protected]>2008-05-30 14:38:32 +0000
commitd6d1b2825a28d25c09a87ca855e01a0d85b5fa75 (patch)
tree57e715efdbb6b6a4d82b139549d8f5f510d19d27 /src
parent7bd453d23c6b14bb075a67446b7c74f25cd72743 (diff)
adapted EGLDrawable.destroy()
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@237 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/es1/RedSquare.java3
-rwxr-xr-xsrc/demos/es1/angeles/Main.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index f0e0fa1..b398193 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -133,8 +133,7 @@ public class RedSquare implements MouseListener {
// Shut things down cooperatively
context.release();
context.destroy();
- drawable.setRealized(false);
- factory.shutdown();
+ drawable.destroy();
System.out.println("RedSquare shut down cleanly.");
} catch (Throwable t) {
t.printStackTrace();
diff --git a/src/demos/es1/angeles/Main.java b/src/demos/es1/angeles/Main.java
index 66592be..ccd2db8 100755
--- a/src/demos/es1/angeles/Main.java
+++ b/src/demos/es1/angeles/Main.java
@@ -82,8 +82,7 @@ public class Main implements MouseListener {
// Shut things down cooperatively
context.release();
context.destroy();
- drawable.setRealized(false);
- factory.shutdown();
+ drawable.destroy();
System.out.println("Angeles shut down cleanly.");
} catch (GLException e) {
e.printStackTrace();