Posted by
Sven Gothel on
Oct 08, 2012; 10:53pm
URL: https://forum.jogamp.org/Pls-test-new-JOGL-aggregated-build-pre-RC11-no-XInitThreads-tp4026312p4026437.html
On 10/08/2012 02:03 PM, Jan Ekholm [via jogamp] wrote:
> I'm the Twitter user referred to above.
>
Thank you for joining here.
> 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 );
Can you pls do the following:
- see our wiki/faq/bugreport
- post a complete [unit] test here which fails for you ?
- this can be one of our existing (preferable),
which you may have modified.
- run with -Djogl.debug=all -Dnewt.debug=all
and post log file here / bug-report
- debugging a JOGL app.
- find general error:
- -Djogl.debug=all -Dnewt.debug=all
- find opengl error
- -Djogl.debug.DebugGL -Djogl.debug.TraceGL, or just
- -Djogl.debug.DebugGL
>
> 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 );
> }
> ...
> }
Always check the extension availability 1st,
function may be available even though not implement.
~Sven
--
health & wealth
mailto:
[hidden email] ;
http://jausoft.comland : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1