summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/msg/test/DisplayShelf.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/joglutils/msg/test/DisplayShelf.java')
-rw-r--r--src/net/java/joglutils/msg/test/DisplayShelf.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/java/joglutils/msg/test/DisplayShelf.java b/src/net/java/joglutils/msg/test/DisplayShelf.java
index de08225..1e3bab7 100644
--- a/src/net/java/joglutils/msg/test/DisplayShelf.java
+++ b/src/net/java/joglutils/msg/test/DisplayShelf.java
@@ -48,6 +48,7 @@ import java.net.*;
import javax.swing.*;
import javax.media.opengl.*;
+import javax.media.opengl.awt.*;
/**
* A test implementing a 3D display shelf component.
@@ -134,7 +135,7 @@ public class DisplayShelf {
}
DisplayShelfRenderer renderer = new DisplayShelfRenderer(model);
- GLCanvas canvas = new GLCanvas(new GLCapabilities(), null, renderer.getSharedContext(), null);
+ GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.getDefault()), null, renderer.getSharedContext(), null);
canvas.setFocusable(true);
canvas.addGLEventListener(renderer);
f.add(canvas);