diff options
author | Sven Gothel <[email protected]> | 2009-10-10 07:22:31 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-10 07:22:31 -0700 |
commit | f21921ffbee502483b87b0f7eb03c0af299cb24b (patch) | |
tree | 265abd9c59e65b32bee5920b96c22bae3804cbe9 /src/demos/GLNewtRun.java | |
parent | 983ed55be2d69de57e52a106ea8809b52730ad12 (diff) |
JOGL changes ..
Diffstat (limited to 'src/demos/GLNewtRun.java')
-rwxr-xr-x | src/demos/GLNewtRun.java | 4 |
1 files changed, 1 insertions, 3 deletions
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); |