Login  Register

Re: pbuffer / FBO : lost and white screen

Posted by ElJojo on Sep 24, 2012; 7:18am
URL: https://forum.jogamp.org/pbuffer-FBO-lost-and-white-screen-tp4026246p4026254.html

I tried to replace the pbuffer part in my constructor with :
        final GLCapabilities reqGLCaps=getCaps(GLProfile.GL2);
        reqGLCaps.setOnscreen(false);
        reqGLCaps.setFBO(true);
        final GLOffscreenAutoDrawable gl = factory.createOffscreenAutoDrawable(null, reqGLCaps, null, project.getWidth(), project.getHeight(), null);

But getCaps and GLOffscreenAutoDrawable don't exist : import javax.media.opengl.GLOffscreenAutoDrawable don't exist.
I'm using Jogl2 (files dated at 07/26/12), JRE 7u7.