// Assuming that the offscreen drawable will/can support the chosen GLCapabilities
// of the offscreen Canvas3D
final GLCapabilities offCaps = new GLCapabilities(profile);
offCaps.copyFrom(canvasCaps);
// double bufffering only if scene antialiasing is required/preferred and supported
if (offCaps.getSampleBuffers() == false) {
offCaps.setDoubleBuffered(false);
offCaps.setNumSamples(0);