diff options
Diffstat (limited to 'src/net/java/joglutils/GLJFrame.java')
-rw-r--r-- | src/net/java/joglutils/GLJFrame.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/java/joglutils/GLJFrame.java b/src/net/java/joglutils/GLJFrame.java index 59a1677..0746d5f 100644 --- a/src/net/java/joglutils/GLJFrame.java +++ b/src/net/java/joglutils/GLJFrame.java @@ -37,6 +37,7 @@ package net.java.joglutils;
import javax.media.opengl.*;
+import javax.media.opengl.awt.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
@@ -69,7 +70,7 @@ public class GLJFrame extends JFrame { public GLJFrame(String title, GLEventListener listener) {
super(title);
this.listener = listener;
- this.caps = new GLCapabilities();
+ this.caps = new GLCapabilities(GLProfile.getDefault());
this.chooser = null; //can be null because that will choose the default
initComponents();
((GLCanvas)mainCanvas).addGLEventListener(listener);
|