From ec32272ad1d5ce2509f0907792a411446acca30d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 24 Apr 2010 05:13:37 +0200 Subject: Adaption to JOGL 1ad8c39df6b097c80ba7a85badf555e7f669cc3f --- src/demos/es2/RedSquare.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/demos/es2/RedSquare.java') 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); -- cgit v1.2.3