Login  Register

Re: GL_ARB_vertex_buffer_object not available on Mac?

Posted by Wade Walker on Jan 03, 2019; 5:00pm
URL: https://forum.jogamp.org/GL-ARB-vertex-buffer-object-not-available-on-Mac-tp4039309p4039363.html

Gradually getting closer to being warning-free! I had to hard-code some constants in jogamp.opengl.awt.Java2D that used to be set by reflection from sun.java2d.opengl.OGLUtilities, and it looks like the next one is in jogamp.nativewindow.jawt.JAWTUtil where it uses reflection to access sun.awt.SunToolkit.awtLock() and sun.awt.SunToolkit.awtUnlock(). I'm not sure why it uses reflection to do this, instead of just using the lock and unlock from the Java Native AWT interface (see https://docs.oracle.com/en/java/javase/11/docs/specs/AWT_Native_Interface.html#jawt.h). I'll dig in and see if there's some trick here, but it looks solvable.