aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-28 23:54:33 +0100
committerSven Gothel <[email protected]>2011-02-28 23:54:33 +0100
commit481285c3d19d0a4c019cffc72b7a8b58296b748e (patch)
treeb44c9560b796da0a1587e791785875b558c93ea4 /src
parenta65516db85582ac3391b4a3d978ac07b9e1e6951 (diff)
fix test - dont use GLAutoDrawable.invoke(boolean wait, GLRunnable glRunnable)
for window locking calls, ie window changes. The GLRunnable list is executed while window is locked.
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/gears/newt/TestGearsNEWT.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/gears/newt/TestGearsNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/gears/newt/TestGearsNEWT.java
index 5433a5ba2..0f7d77f82 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/gears/newt/TestGearsNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/gears/newt/TestGearsNEWT.java
@@ -83,17 +83,15 @@ public class TestGearsNEWT extends UITestCase {
glWindow.addKeyListener(new KeyAdapter() {
public void keyTyped(KeyEvent e) {
if(e.getKeyChar()=='f') {
- f_glWindow.invoke(false, new GLRunnable() {
- public void run(GLAutoDrawable drawable) {
- GLWindow win = (GLWindow)drawable;
- win.setFullscreen(!win.isFullscreen());
- } });
+ new Thread() {
+ public void run() {
+ f_glWindow.setFullscreen(!f_glWindow.isFullscreen());
+ } }.start();
} else if(e.getKeyChar()=='d') {
- f_glWindow.invoke(false, new GLRunnable() {
- public void run(GLAutoDrawable drawable) {
- GLWindow win = (GLWindow)drawable;
- win.setUndecorated(!win.isUndecorated());
- } });
+ new Thread() {
+ public void run() {
+ f_glWindow.setUndecorated(!f_glWindow.isUndecorated());
+ } }.start();
}
}
});