summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/RedSquare.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es2/RedSquare.java')
-rwxr-xr-xsrc/demos/es2/RedSquare.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 975a3f9..f289bdb 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -9,6 +9,7 @@ import com.jogamp.opengl.util.*;
import com.jogamp.opengl.util.glsl.*;
import com.jogamp.newt.*;
+import com.jogamp.newt.event.*;
import com.jogamp.newt.opengl.*;
public class RedSquare extends Thread implements WindowListener, KeyListener, MouseListener, GLEventListener {
@@ -144,9 +145,6 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
try {
// Shut things down cooperatively
window.destroy();
- if(oneThread) {
- window.getFactory().shutdown();
- }
window = null;
if(null!=nWindow) {
nWindow.destroy(true);