summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/RedSquare.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es1/RedSquare.java')
-rwxr-xr-xsrc/demos/es1/RedSquare.java3
1 files changed, 1 insertions, 2 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();