Login  Register

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

Posted by chakie on Oct 08, 2012; 12:03pm
URL: https://forum.jogamp.org/Pls-test-new-JOGL-aggregated-build-pre-RC11-no-XInitThreads-tp4026312p4026424.html

I'm the Twitter user referred to above.

OSX is 10.8.1.
JOGL is jogl-2.0-b825-20121006-macosx-universal (daily build).

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

Some added checks removed (such as a check for glprofile.isGL3()). So far no errors. Later there is
code like this to do some sanity checks:

    public void initialize(GL3 gl) {
        System.out.println( "Scene.initialize" );

        System.out.println( "Scene.initialize: INIT GL IS:  " + gl.getClass().getName() );
        System.out.println( "Scene.initialize: GL_VENDOR:   " + gl.glGetString( GL.GL_VENDOR ) );
        System.out.println( "Scene.initialize: GL_RENDERER: " + gl.glGetString( GL.GL_RENDERER ) );
        System.out.println( "Scene.initialize: GL_VERSION:  " + gl.glGetString( GL.GL_VERSION ) );

        if ( !gl.isFunctionAvailable( "glGenBuffers" )
                || !gl.isFunctionAvailable( "glBindBuffer" )
                || !gl.isFunctionAvailable( "glBufferData" )
                || !gl.isFunctionAvailable( "glDeleteBuffers" ) ) {
            System.exit( 1 );
        }
        ...
}

This gives:

Scene.initialize: INIT GL IS:  jogamp.opengl.gl4.GL4bcImpl
Scene.initialize: GL_VENDOR:   NVIDIA Corporation
Scene.initialize: GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine
Scene.initialize: GL_VERSION:  3.2 NVIDIA-8.0.61

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.

Later when rendering I see:

2012-10-08 14:58:10.779 java[3950:707] invalid share context
2012-10-08 14:58:10.779 java[3950:707] invalid context

Nothing is shown.