diff options
author | Sven Gothel <[email protected]> | 2013-11-15 11:54:14 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-11-15 11:54:14 +0100 |
commit | 0c401343d6280d5de52fbf652d94ad9a47bd9d3c (patch) | |
tree | 498bcce0a30fe2c381d1da10b19b335aaad5db82 /src/test/com/jogamp/opengl | |
parent | 0db2635c337c59a149f601ef8d72b26ead4353b1 (diff) |
Applet Test Bug848AppletGLCanvas01: Only use vsync-interval 1 for last GLJPanel
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/awt/Bug848AppletGLCanvas01.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/awt/Bug848AppletGLCanvas01.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/awt/Bug848AppletGLCanvas01.java index 89e31cfe9..c3d40b71d 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/awt/Bug848AppletGLCanvas01.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/awt/Bug848AppletGLCanvas01.java @@ -3,14 +3,14 @@ * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. - * + * * 2. Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR @@ -20,7 +20,7 @@ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * + * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of JogAmp Community. @@ -46,25 +46,25 @@ import com.jogamp.opengl.util.Animator; */ @SuppressWarnings("serial") public class Bug848AppletGLCanvas01 extends Applet { - private List<GLAnimatorControl> animators = new ArrayList<GLAnimatorControl>(2); + private final List<GLAnimatorControl> animators = new ArrayList<GLAnimatorControl>(2); @Override public void init() { System.err.println("GearsApplet: init() - begin [visible "+isVisible()+", displayable "+isDisplayable()+"] - "+currentThreadName()); new BoxLayout(this, BoxLayout.X_AXIS); setSize(1024, 664); - add(createCanvas()); - add(createCanvas()); - add(createCanvas()); - add(createCanvas()); - add(createCanvas()); - add(createCanvas()); + add(createCanvas(0)); + add(createCanvas(0)); + add(createCanvas(0)); + add(createCanvas(0)); + add(createCanvas(0)); + add(createCanvas(1)); System.err.println("GearsApplet: init() - end [visible "+isVisible()+", displayable "+isDisplayable()+"] - "+currentThreadName()); } - private GLCanvas createCanvas() { + private GLCanvas createCanvas(int vsyncI) { GLCanvas canvas = new GLCanvas(); - canvas.addGLEventListener(new GearsES2(1)); + canvas.addGLEventListener(new GearsES2(vsyncI)); canvas.setSize(300, 300); animators.add(new Animator(canvas)); return canvas; @@ -73,7 +73,7 @@ public class Bug848AppletGLCanvas01 extends Applet { String currentThreadName() { return Thread.currentThread().getName(); } - + @Override public void start() { System.err.println("GearsApplet: start() - begin [visible "+isVisible()+", displayable "+isDisplayable()+"] - "+currentThreadName()); |