Login  Register

Re: GLJPanel Native crash when sharing context of offscreen drawable

Posted by gouessej on Jul 12, 2018; 7:59am
URL: https://forum.jogamp.org/GLJPanel-Native-crash-when-sharing-context-of-offscreen-drawable-tp4039013p4039015.html

Hey

Your source code is understandable but please provide a SSCCE written in Java. You can look at the source code of several engines based on JOGL in order to see how to use FBOs. Please don't pass an indirect NIO buffer to glClearBufferfv, create a direct NIO buffers with Buffers.newDirectFloatBuffer(), fill it and rewind it.

Are you sure that you don't do anything else not mentioned yet? EXCEPTION_ACCESS_VIOLATION can occur when OpenGL tries to read beyond the limit of a NIO buffer.
Julien Gouesse | Personal blog | Website