summaryrefslogtreecommitdiffstats
path: root/src/demos/es1
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es1')
-rwxr-xr-xsrc/demos/es1/RedSquare.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index 5018d5b..026e1c2 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -138,7 +138,9 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
glAnimator = new Animator(Thread.currentThread().getThreadGroup(), window);
glAnimator.start();
while (glAnimator.isAnimating()) {
- Thread.yield();
+ try {
+ Thread.sleep(100);
+ } catch (Exception e) {}
}
shutdown();
} else {