Login  Register

offscreen rendering - Pbuffer check

Posted by BrickFarmer on Nov 29, 2010; 10:24pm
URL: https://forum.jogamp.org/offscreen-rendering-Pbuffer-check-tp1989345.html

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);