From 6e16950d5d4a87e84e34c93d44f49866183729d4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 10 Jul 2014 16:06:32 +0200 Subject: Refine commit ec2d94ca26ddab8ec67135ebc5f2d0a43f6a4c25: Call 'areAllGLEventListenerInitialized()' directly from GLAutoDrawable --- src/jogl/classes/jogamp/opengl/GLDrawableHelper.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java index e3ce7001e..eac14fdff 100644 --- a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java +++ b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java @@ -58,7 +58,6 @@ import javax.media.opengl.GLEventListener; import javax.media.opengl.GLException; import javax.media.opengl.GLFBODrawable; import javax.media.opengl.GLRunnable; -import javax.media.opengl.GLSharedContextSetter; import com.jogamp.common.util.PropertyAccess; @@ -152,14 +151,8 @@ public class GLDrawableHelper { final GLContext shareWith; final boolean pending; if ( null != sharedAutoDrawable ) { - final boolean allGLELInitialized; - if( sharedAutoDrawable instanceof GLSharedContextSetter ) { - allGLELInitialized = ((GLSharedContextSetter)sharedAutoDrawable).areAllGLEventListenerInitialized(); - } else { - allGLELInitialized = true; // we have to assume 'yes' - } shareWith = sharedAutoDrawable.getContext(); - pending = null == shareWith || !shareWith.isCreated() || !allGLELInitialized; + pending = null == shareWith || !shareWith.isCreated() || !sharedAutoDrawable.areAllGLEventListenerInitialized(); } else { shareWith = sharedContext; pending = null != shareWith && !shareWith.isCreated(); -- cgit v1.2.3