summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-13 02:38:21 +0200
committerSven Gothel <[email protected]>2023-08-13 02:38:21 +0200
commit52b745ed2196d3e00102e8fccace25f41386a016 (patch)
treed03045b5da9c7b422711645dc1d38fa580de618e /src/newt/classes
parentc25a2900e52505ff894701928227d5bcd70b72d3 (diff)
Animator*: Add ctor variants passing modeBits directly, i.e. enable/disable AWT rendering thread support. Adopt it in tests and demos
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/jogamp/newt/util/applet/JOGLNewtAppletBase.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/util/applet/JOGLNewtAppletBase.java b/src/newt/classes/com/jogamp/newt/util/applet/JOGLNewtAppletBase.java
index 055e38020..6a49f8921 100644
--- a/src/newt/classes/com/jogamp/newt/util/applet/JOGLNewtAppletBase.java
+++ b/src/newt/classes/com/jogamp/newt/util/applet/JOGLNewtAppletBase.java
@@ -207,8 +207,7 @@ public class JOGLNewtAppletBase implements KeyListener, GLEventListener {
glWindow.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, System.err);
// glAnimator = new FPSAnimator(canvas, 60);
- glAnimator = new Animator();
- glAnimator.setModeBits(false, AnimatorBase.MODE_EXPECT_AWT_RENDERING_THREAD); // No AWT thread involved!
+ glAnimator = new Animator(0 /* w/o AWT */);
glAnimator.setThreadGroup(tg);
glAnimator.add(glWindow);
glAnimator.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, null);