Login  Register

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Posted by Mr.Marbles on Aug 30, 2015; 6:00pm
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035180.html

JoglGLExt doesn't compile. There are casts from Object to primitive long. I had to change them to Long:

    @Override
    public int glClientWaitSync(Object sync, int flags, long timeout) {
        return GLContext.getCurrentGL().getGL3ES3().glClientWaitSync((Long) sync, flags, timeout);
    }

    @Override
    public void glDeleteSync(Object sync) {
        GLContext.getCurrentGL().getGL3ES3().glDeleteSync((Long) sync);
    }