summaryrefslogtreecommitdiffstats
path: root/src/demos/context
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/context')
-rwxr-xr-xsrc/demos/context/DualContext.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/context/DualContext.java b/src/demos/context/DualContext.java
index 3a24579..b75e289 100755
--- a/src/demos/context/DualContext.java
+++ b/src/demos/context/DualContext.java
@@ -46,6 +46,7 @@ import java.awt.Graphics;
import java.awt.GraphicsConfiguration;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
+import javax.media.nwi.*;
import javax.media.opengl.*;
import javax.media.opengl.awt.*;
import javax.media.opengl.glu.GLU;
@@ -69,7 +70,7 @@ public class DualContext extends Canvas {
private GLUT glut;
private int repaintNum;
- public DualContext(GLCapabilities capabilities) {
+ public DualContext(NWCapabilities capabilities) {
super(unwrap((AWTGraphicsConfiguration)
NativeWindowFactory.getFactory(Canvas.class).chooseGraphicsConfiguration(capabilities, null, null)));
NativeWindow win = NativeWindowFactory.getFactory(getClass()).getNativeWindow(this);
@@ -139,7 +140,7 @@ public class DualContext extends Canvas {
public static void main(String[] args) {
JFrame frame = new JFrame("Dual OpenGL Context Test");
- final DualContext dc = new DualContext(new GLCapabilities());
+ final DualContext dc = new DualContext(new NWCapabilities());
frame.getContentPane().add(dc, BorderLayout.CENTER);
JButton button = new JButton("Repaint");
button.addActionListener(new ActionListener() {