offscreen rendering - Pbuffer check

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

offscreen rendering - Pbuffer check

BrickFarmer
This post was updated on .
if(!GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL2)).canCreateGLPbuffer()) {

I'm doing some offscreen rendering in a small utility class and found the above line of code when migrating to latest jogl2.    any tip for replacement code, I can see I need some kind of device, but no idea what would be correct for off-screen rendering...

[edit]
I'm now also seeing similar error with the following code:
GLDrawableFactory.getFactory(GLProfile.get(GLProfile.GL2)).createGLPbuffer(new GLCapabilities(GLProfile.get(GLProfile.GL2)), new DefaultGLCapabilitiesChooser(), 128, 128, null);