summaryrefslogtreecommitdiffstats
path: root/src/demos/context
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-23 05:07:51 +0100
committerSven Gothel <[email protected]>2010-11-23 05:07:51 +0100
commitae1ca3f2cae849f5e5a44538284082e861a98de1 (patch)
tree65c3c820ae0c744bc1f60393d41ffec6984a786d /src/demos/context
parenta6076ff25bd3abd2d1e12f77dfde3f255ac67e7d (diff)
Adapt to JOGL 7262641429b542929efc699e392f410f1dee2187
Diffstat (limited to 'src/demos/context')
-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);