I’m having a problem with the Mesa 6.4.1 libraries trying to create a pbuffer on Linux. I have the following code:
GLCapabilities caps = new GLCapabilities();
caps.setAlphaBits(8);
pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps, null, imageSide, imageSide, glcanvas.getContext());
The createGLPbuffer function causes the following exception:
Exception in thread “AWT-EventQueue-0” javax.media.opengl.GLException: pbuffer creation error: glXChooseFBConfig() failed
at com.sun.opengl.impl.x11.X11PbufferGLDrawable.createPbuffer(X11PbufferGLDrawable.java:126)
at com.sun.opengl.impl.x11.X11PbufferGLDrawable.(X11PbufferGLDrawable.java:73)
at com.sun.opengl.impl.x11.X11GLDrawableFactory$3.run(X11GLDrawableFactory.java:266)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.maybeDoSingleThreadedWorkaround(X11GLDrawableFactory.java:539)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.createGLPbuffer(X11GLDrawableFactory.java:273)
although the GLDrawableFactory.getFactory().canCreateGLPbuffer() function returns true. Querying the video card gives:
canvas size=[1001 x 448], doublebuffer=true, stereoview=false, maximum viewport=[4096 x 4096], maximum texture=[1024 x 1024], depth bits=16, alpha bits=[8], GL vendor=[Mesa project: www.mesa3d.org], GL version=[1.2 (1.5 Mesa 6.4.1)], GL renderer=[Mesa GLX Indirect], extensions=[GL_ARB_imaging GL_ARB_multitexture GL_ARB_texture_border_clamp GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_transpose_matrix GL_EXT_abgr GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_lod_bias ], canCreateOffscreenDrawable=true
I’m using the JSR-231 beta5 jogl. Am I missing something.