Login  Register

offscreen rendering - Pbuffer check

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

offscreen rendering - Pbuffer check

BrickFarmer
This post was updated on Dec 07, 2010; 12:58pm.
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);