From dd8f6f0c884161eb1099ff1ab8af20383984771d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 8 Dec 2019 07:39:24 +0100 Subject: Bug 1415: ExclusiveContextBase00+10: Utilize one Animator per Window for clean ExclusiveContextThread No, this does not resolve the issue - but is the proper test case. ExclusiveContextBase10 also gets the preVis test. --- .../jogl/acore/ect/ExclusiveContextBase00.java | 295 +++++++++++---------- .../jogl/acore/ect/ExclusiveContextBase10.java | 138 +++++++--- 2 files changed, 248 insertions(+), 185 deletions(-) (limited to 'src/test/com/jogamp/opengl') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java index fca967ea4..817f5988e 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/ect/ExclusiveContextBase00.java @@ -36,7 +36,7 @@ import com.jogamp.opengl.test.junit.util.UITestCase; import com.jogamp.opengl.util.AnimatorBase; import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2; - +import com.jogamp.common.os.Platform; import com.jogamp.nativewindow.Capabilities; import com.jogamp.nativewindow.util.InsetsImmutable; @@ -114,90 +114,92 @@ public abstract class ExclusiveContextBase00 extends UITestCase { return; } final Thread awtRenderThread = getAWTRenderThread(); - final AnimatorBase animator = createAnimator(); - if( !useAWTRenderThread ) { - animator.setModeBits(false, AnimatorBase.MODE_EXPECT_AWT_RENDERING_THREAD); - } + final AnimatorBase[] animators = new AnimatorBase[drawableCount]; final GLAutoDrawable[] drawables = new GLAutoDrawable[drawableCount]; for(int i=0; i