My code is pretty generic… I have a class:
public class Graph3dPlot extends GLJPanel implements GLEventListener {
The ctor does a:
public Graph3dPlot() {
super(getCapabilities());
The getCapabilities() does a:
private static GLCapabilities getCapabilities() {
GLCapabilities caps = new GLCapabilities();
caps.setDoubleBuffered(true);
caps.setHardwareAccelerated(true);
GLDrawableFactory factory = GLDrawableFactory.getFactory();
// Work around our GL Shared library versioning problem
@SuppressWarnings(“unused”)
boolean supportsPBuffer = factory.canCreateGLPbuffer();
return caps;
}
The GLDrawableFactor hack managed to work around the shared library issue on some machines. The Drawable would recognize that it supported PBuffer and pick the vendor specific (GL Version 1.4) library.
However, yesterday, I ran on a Desktop with an NVidia graphics card. The OpenGL libraries are there, but I still picked up the default Microsoft opengl32.dll (GL Version 1.1).
I tried to standardize my Eclipse environment and my vanilla-Java environment on Jre 1.5.0_11.
Thanks for the help.