Login  Register

Re: GL_ARB_vertex_buffer_object not available on Mac?

Posted by Wade Walker on Dec 30, 2018; 7:31pm
URL: https://forum.jogamp.org/GL-ARB-vertex-buffer-object-not-available-on-Mac-tp4039309p4039354.html

Now gluegen, JOGL, JOCL, and JOAL all compile on Windows. Tests on glugen and JOGL seem to work for the most part; there are a few failures sprinkled around, but I don't think they reflect on the build process. Haven't tried the build on Mac or Linux yet.

I took a quick stab at the "Illegal reflective access" errors to see how deep they went. The first one is due to java.lang.ClassLoader.findLibrary(), which it seems like we may not have to call any more -- perhaps it was only useful to find libraries from inside applets, which are now deprecated? In any case, when I comment these out, the code still seems to work.

The next error is from accessing sun.java2d.opengl.OGLUtilities, which is used in GLJPanel to check the Java2D surface type. Unfortunately the entire sun.* package hierarchy seems to be inaccessible in Java 9+. I may be able to replace this with OpenGL calls like glIsFramebuffer() and glIsTexture() instead of stealing the surface type out of OGLUtilities and sun.java2d.opengl.OGLSurfaceData.