Thanks for the quick responses The createGL() method looks like this:
static GL createGL()
{
GLDrawableFactory f = GLDrawableFactory.getFactory();
if (f.canCreateGLPbuffer())
{
try
{
pbuffer = f.createGLPbuffer(new GLCapabilities(),
null, 1, 1, null);
pbuffer.display();
if (pbuffer.getContext().makeCurrent() != GLContext.CONTEXT_NOT_CURRENT)
return pbuffer.getGL();
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
return null;
}
Unfortunately I get the exception
[quote]javax.media.opengl.GLException: javax.media.opengl.GLException: pbuffer creation error: glXCreatePbuffer() failed
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.maybeDoSingleThreadedWorkaround(X11GLDrawableFactory.java:668)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.createGLPbuffer(X11GLDrawableFactory.java:327)
at com.xenoage.score.app.opengl.OpenGLCaps.createGL(OpenGLCaps.java:97)
at com.xenoage.score.app.opengl.TextureManagerTest.getImageTexture(TextureManagerTest.java:31)
[…]
[/quote]
Am I using bad parameters or is my video card not able to create pbuffers? I have a ATI Mobility Radeon 9700 and Linux is running:
[quote]andi@andi-laptop:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700
OpenGL version string: 2.0.6334 (8.34.8)
[/quote]
With the FireGL-drivers deactivated, using the default ATI drivers supplied with Ubuntu 7.04:
[quote]javax.media.opengl.GLException: javax.media.opengl.GLException: pbuffer creation error: glXChooseFBConfig() failed
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.maybeDoSingleThreadedWorkaround(X11GLDrawableFactory.java:668)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.createGLPbuffer(X11GLDrawableFactory.java:327)
at com.xenoage.score.app.opengl.OpenGLCaps.createGL(OpenGLCaps.java:97)
at com.xenoage.score.app.opengl.TextureManagerTest.getImageTexture(TextureManagerTest.java:31)
[/quote]
My fault or driver’s fault?