I am converting my code to JOGL from GL4Java. I am getting an error at runtime for the following test code. Do I need to create a custom glCap to pass in? I’m running Win2K with a 3Dlabs Wildcat II 5110 at 1600x1200, 32 bit. JDK 1.5.0, JOGL 1.1b07 - November 19
GLCanvas canvas =
GLDrawableFactory.getFactory().createGLCanvas(
new GLCapabilities());
Frame testFrame = new Frame(“TestFrame”);
testFrame.setSize( 512, 384 );
testFrame.add( canvas );
testFrame.setVisible(true);
Exception in thread “main” net.java.games.jogl.GLException: Unable to select one of the provided GLCapabilities
at net.java.games.jogl.DefaultGLCapabilitiesChooser.chooseCapabilities(DefaultGLCapabilitiesChooser.java:214)
at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:471)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:135)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:250)
at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:112)
at java.awt.Component.setBounds(Component.java:1847)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:809)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validate(Container.java:1448)
at java.awt.Window.show(Window.java:507)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)