summaryrefslogtreecommitdiffstats
path: root/src/demos/es1
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-03 23:16:29 +0000
committerSven Gothel <[email protected]>2009-06-03 23:16:29 +0000
commit00be16b0e3826a8ea7a18887eafc0d171116cb5d (patch)
treedca2301270ef05c5a9abaaa404a2565c8e70f638 /src/demos/es1
parentbf12062676c11ee4df156a694a941fe85e9d828c (diff)
Move setVisible to main thread - still MacOSX buggy with multiple threads
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@340 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es1')
-rwxr-xr-xsrc/demos/es1/RedSquare.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index 0a59101..eb36474 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -102,6 +102,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
// Size OpenGL to Video Surface
window.setSize(width, height);
// window.setFullscreen(true);
+ window.setVisible(true);
} catch (Throwable t) {
t.printStackTrace();
}
@@ -120,8 +121,6 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
public void run() {
System.err.println(glp+" RedSquare.run()");
try {
- window.setVisible(true);
-
do {
window.display();
} while (!quit && window.getDuration() < 20000) ;