From b09cd25702e6ffd5197ec02cf3d34b4c2876b67b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 6 Sep 2013 04:21:36 +0200 Subject: GLDrawableUtil.swapGLContextAndAllGLEventListener: Fix comment - Add remark about GLAnimatorControl's which association gets swapped as well. --- src/jogl/classes/com/jogamp/opengl/util/GLDrawableUtil.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLDrawableUtil.java b/src/jogl/classes/com/jogamp/opengl/util/GLDrawableUtil.java index 28349b250..655f6d688 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLDrawableUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLDrawableUtil.java @@ -113,6 +113,10 @@ public class GLDrawableUtil { /** * Swaps the {@link GLContext} and all {@link GLEventListener} between {@link GLAutoDrawable} a and b, * while preserving it's initialized state, resets the GL-Viewport and issuing {@link GLEventListener#reshape(GLAutoDrawable, int, int, int, int) reshape(..)}. + *

+ * The {@link GLAutoDrawable} to {@link GLAnimatorControl} association + * is also swapped. + *

*

* If an {@link GLAnimatorControl} is being attached to {@link GLAutoDrawable} a or b * and the current thread is different than {@link GLAnimatorControl#getThread() the animator's thread}, it is paused during the operation. -- cgit v1.2.3