From f21921ffbee502483b87b0f7eb03c0af299cb24b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 10 Oct 2009 07:22:31 -0700 Subject: JOGL changes .. --- src/demos/GLNewtRun.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/demos/GLNewtRun.java') diff --git a/src/demos/GLNewtRun.java b/src/demos/GLNewtRun.java index 0df07fc..fd663b3 100755 --- a/src/demos/GLNewtRun.java +++ b/src/demos/GLNewtRun.java @@ -197,6 +197,7 @@ public class GLNewtRun implements WindowListener, KeyListener, MouseListener { try { GLCapabilities caps = new GLCapabilities(glp); + NewtFactory.setUseEDT(true); Window nWindow = null; if(useAWT) { Display nDisplay = NewtFactory.createDisplay(NativeWindowFactory.TYPE_AWT, null); // local display @@ -233,9 +234,6 @@ public class GLNewtRun implements WindowListener, KeyListener, MouseListener { window.addMouseListener(listener); window.addKeyListener(listener); window.addGLEventListener(demo); - // window.setEventHandlerMode(GLWindow.EVENT_HANDLER_GL_CURRENT); // default - window.setEventHandlerMode(GLWindow.EVENT_HANDLER_GL_NONE); // no current .. - window.setRunPumpMessages(true); window.setPosition(x, y); window.setSize(width, height); -- cgit v1.2.3