I'm trying to use a PBuffer with multisampling, but it fails with an LWJGLException "Failed to find ARB pixel format 1 0"
I'm running windows 7 64 bits with an NVidia GTX 260 and tested with LWJGL 2.8.3 and 2.8.4-1595.
My graphic card support multisampling, and GL_MAX_SAMPLES return the value 16:
Pbuffer tmp = new Pbuffer(64, 64, new PixelFormat(), null);
tmp.makeCurrent();
int maxSamples = GL11.glGetInteger(GL30.GL_MAX_SAMPLES); // maxSamples is 16
tmp.destroy();
When I create the Pbuffer with non 0 samples:
new Pbuffer(64, 64, new PixelFormat().withSamples(4), null);
it fails with the exception:
Caused by: org.lwjgl.LWJGLException: Failed to find ARB pixel format 1 0
at org.lwjgl.opengl.WindowsPbufferPeerInfo.nCreate(Native Method)
at org.lwjgl.opengl.WindowsPbufferPeerInfo.<init>(Unknown Source)
at org.lwjgl.opengl.WindowsDisplay.createPbuffer(Unknown Source)
at org.lwjgl.opengl.Pbuffer.createPbuffer(Unknown Source)
at org.lwjgl.opengl.Pbuffer.<init>(Unknown Source)
at org.lwjgl.opengl.Pbuffer.<init>(Unknown Source)
at org.lwjgl.opengl.Pbuffer.<init>(Unknown Source)
... 3 more
I've tried various size, samples and other values in PixelFormat but nothing was successfull.
Multisampling is working fine with Display and AWTGLCanvas, it's seem only broken for me with Pbuffer.
Also to check, I can use pbuffer with multisampling sucessfully with jogamp.
Did I miss something or can someone confirm this is a bug (or not) in recent build of lwjgl ?