aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-10 16:06:32 +0200
committerSven Gothel <[email protected]>2014-07-10 16:06:32 +0200
commit6e16950d5d4a87e84e34c93d44f49866183729d4 (patch)
tree378f45b957f1aa109792defd5931002f120562eb
parent808d95cd692ab666271a83c70e8509859586de72 (diff)
Refine commit ec2d94ca26ddab8ec67135ebc5f2d0a43f6a4c25: Call 'areAllGLEventListenerInitialized()' directly from GLAutoDrawable
-rw-r--r--src/jogl/classes/jogamp/opengl/GLDrawableHelper.java9
1 files changed, 1 insertions, 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();