Login  Register

Re: Pls test new JOGL aggregated build (pre RC11) - no XInitThreads() ..

Posted by Xerxes Rånby on Oct 08, 2012; 12:23pm
URL: https://forum.jogamp.org/Pls-test-new-JOGL-aggregated-build-pre-RC11-no-XInitThreads-tp4026312p4026425.html

gouessej wrote
Xerxes, has jan_ekholm tried NEWT? Sorry to avoid replying on Twitter, I refuse feeding this monster.
gouessej please explain, what is monsterish/trollish about discussing JOGL issues on Twitter? Is Twitter the monster? I am assuming you refer to the Twitter service and not Jan in person.

Jan Ekholm wrote
I'm the Twitter user referred to above.
Welcome to the discussion and thank you for reporting issues with jogl.

Jan Ekholm wrote
When my shaders are compiled and linked I see this error:

createAndCompileShader: Pre GL Error: 0x500

No error in the info log and everything completes nicely and seems to be ok apart from that printed error.
Error 0x500 indicate that you have a GL_INVALID_ENUM at some place.
Try look into why you get this first.

Jan Ekholm wrote
My canvas is set up as follows:

        GLProfile glprofile = GLProfile.get(GLProfile.GL3);
        GLCapabilities glcapabilities = new GLCapabilities( glprofile );
        glcapabilities.setHardwareAccelerated( true );
        final Canvas canvas = new Canvas( glcapabilities );
I am a bit puzzled by your code, are you using a SWT or AWT Canvas or something else?
com.jogamp.opengl.awt.GLCanvas
com.jogamp.opengl.swt.GLCanvas
com.jogamp.newt.awt.NewtCanvasAWT

In order to isolate the bug that may be isolated in one of the above Canvas can you try use a NEWT GLWindow instead of a Canvas?

Try replace the Canvas implementation
final Canvas canvas = new Canvas( glcapabilities );
with a NEWT GLWindow.
NEWT is the most platform independent way we have in JOGL to open a drawable.
http://jogamp.org/jogl/doc/NEWT-Overview.html

import com.jogamp.newt.opengl.GLWindow;

        GLWindow glWindow = GLWindow.create(caps);

        glWindow.setTitle("foo");
        glWindow.setSize(width,height);
        glWindow.setUndecorated(false);
        glWindow.setPointerVisible(true);
        glWindow.setVisible(true);

        // Finally we connect the GLEventListener application code to the NEWT GLWindow.
        // GLWindow will call the GLEventListener init, reshape, display and dispose
        // functions when needed.
        glWindow.addGLEventListener(new RawGL2ES2demo() /* GLEventListener */);
        Animator animator = new Animator(glWindow);
        animator.add(glWindow);
        animator.start();