From 144b9ef5a433b2a93f5503b1c935c8f7ec61a0de Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 7 Nov 2013 13:38:16 +0100 Subject: GLJPanel: Don't ctor DefaultGLCapabilitiesChooser() if null chooser is passed, this allows native GLCaps/config query to follow fast-path --- src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/javax/media') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index e3d71302b..40c38994e 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -332,7 +332,7 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing } this.glProfile = offscreenCaps.getGLProfile(); this.factory = GLDrawableFactoryImpl.getFactoryImpl(glProfile); - this.chooser = ((chooser != null) ? chooser : new DefaultGLCapabilitiesChooser()); + this.chooser = chooser; if( null != shareWith ) { helper.setSharedContext(null, shareWith); } -- cgit v1.2.3