diff options
author | Sven Gothel <sgothel@jausoft.com> | 2013-11-07 13:38:16 +0100 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2013-11-07 13:38:16 +0100 |
commit | 144b9ef5a433b2a93f5503b1c935c8f7ec61a0de (patch) | |
tree | 5d6f89894bf2dc7274fa6a4451ef0e1464ea4bab /src/jogl | |
parent | 6395670886513796b747e7aaef2ebfbbcda7b07e (diff) |
GLJPanel: Don't ctor DefaultGLCapabilitiesChooser() if null chooser is passed, this allows native GLCaps/config query to follow fast-path
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |