summaryrefslogtreecommitdiffstats
path: root/src/demos/context/DualContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/context/DualContext.java')
-rwxr-xr-xsrc/demos/context/DualContext.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demos/context/DualContext.java b/src/demos/context/DualContext.java
index d77c49a..562b1fd 100755
--- a/src/demos/context/DualContext.java
+++ b/src/demos/context/DualContext.java
@@ -145,8 +145,9 @@ public class DualContext extends Canvas {
GLProfile glp = GLProfile.getDefault(); // warm up ..
AWTGraphicsScreen screen = (AWTGraphicsScreen)AWTGraphicsScreen.createDefault();
+ GLCapabilities caps = new GLCapabilities(glp);
AWTGraphicsConfiguration config = (AWTGraphicsConfiguration)
- GraphicsConfigurationFactory.getFactory(AWTGraphicsDevice.class).chooseGraphicsConfiguration(new GLCapabilities(glp), null, screen);
+ GraphicsConfigurationFactory.getFactory(AWTGraphicsDevice.class).chooseGraphicsConfiguration(caps, caps, null, screen);
final DualContext dc = new DualContext(config);
frame.getContentPane().add(dc, BorderLayout.CENTER);