From ae1ca3f2cae849f5e5a44538284082e861a98de1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 23 Nov 2010 05:07:51 +0100 Subject: Adapt to JOGL 7262641429b542929efc699e392f410f1dee2187 --- src/demos/context/DualContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/demos/context/DualContext.java') 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); -- cgit v1.2.3