diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index b16c715f2..b006d69cd 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -938,8 +938,7 @@ public class PSurfaceJOGL implements PSurface { @Override public void windowDestroyNotify(com.jogamp.newt.event.WindowEvent arg0) { - sketch.dispose(); - sketch.exitActual(); + sketch.exit(); } @Override