diff options
Diffstat (limited to 'src/demos')
-rwxr-xr-x | src/demos/context/DualContext.java | 8 | ||||
-rw-r--r-- | src/demos/jgears/JGears.java | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/demos/context/DualContext.java b/src/demos/context/DualContext.java index b07d040..01ea2ba 100755 --- a/src/demos/context/DualContext.java +++ b/src/demos/context/DualContext.java @@ -61,12 +61,8 @@ public class DualContext extends Canvas { private int repaintNum; public DualContext(GLCapabilities capabilities) { - super(GLDrawableFactory.getFactory().chooseGraphicsConfiguration(capabilities, - new DefaultGLCapabilitiesChooser(), - GraphicsEnvironment. - getLocalGraphicsEnvironment(). - getDefaultScreenDevice())); - drawable = GLDrawableFactory.getFactory().getGLDrawable(this, capabilities, new DefaultGLCapabilitiesChooser()); + super(GLDrawableFactory.getFactory().chooseGraphicsConfiguration(capabilities, null, null)); + drawable = GLDrawableFactory.getFactory().getGLDrawable(this, capabilities, null); context1 = drawable.createContext(null); context2 = drawable.createContext(null); glut = new GLUT(); diff --git a/src/demos/jgears/JGears.java b/src/demos/jgears/JGears.java index 438789e..5cdcadc 100644 --- a/src/demos/jgears/JGears.java +++ b/src/demos/jgears/JGears.java @@ -36,7 +36,7 @@ public class JGears extends GLJPanel { } public JGears() { - super(caps, new DefaultGLCapabilitiesChooser(), null); + super(caps, null, null); addGLEventListener(new Gears()); try { InputStream in = JGears.class.getClassLoader().getResourceAsStream("demos/data/images/java_logo.png"); |