Sample buffer bug in 1b04

Hi there, I’ve just upgraded from 1b03 to the 1b04 build and my DefaultGLCapabilitiesChooser now reports that I have no sample buffers - and I certainly don’t seem to be able to use any - the call:

gl.glEnable( GL.GL_MULTISAMPLE_ARB );

consistently has no affect under 1b04 but consistently works with 1b03.

Do I need to change my code or this a bug in the new build?

Thanks

Have you set setSampleBuffers to true in your GLCapabilities? You have to request a sample buffer because it is turned off by default.

Yep, I do:

capabilities.setNumSamples( 8 );
capabilities.setSampleBuffers( true );

And I keep everything the same between my 1b03 and 1b04 tests except for the jogl.jar, so that’s where the problem is.

Interestingly the following line “glCanvas.setNoAutoRedrawMode( false )” has very occasionally made the 1b04 build work. I read on another thread that the GLCanvas has to be attached to its frame only after the frame has been displayed and I wonder whether my problem has anything to do with that. I certainly hope that that behavior is also considered a bug in jogl because I have no control over the state of the frame that is passed to me by the application framework I’m using.

I haven’t seen behavior like this but could you please file a bug with the Issue Tracker on the JOGL web page and attach a small test case? Thanks.

I bet he is running into the wglChoosePixelFormat/ChoosePixelFormat path problem.

I see. You mean that the background window is not being created in time and ChoosePixelFormat is being used to get the pixel format instead, and it doesn’t have the requested sample buffers?

If it sometimes works and sometimes doesn’t that has to be it. I will finish the native window thing I am doing and we will see if that fixes it.

commondata if you goto my site and download jogl.jar and jogldll.zip I would appreciate it. I think this modded version of jogl should fix your problem or at least give me an idea of what is going on with your setup.

Nice work people - that fixed it.