On 3/20/23 12:33, Michael Hall wrote:
/*
* We cannot use dispatch_sync here, because it blocks the main
dispatch queue.
* Using the main NSRunLoop allows the dispatch queue to run
properly once
* SWT (or whatever toolkit this is needed for) kicks off it's own
NSRunLoop
* and starts running.
*/
I would think the problem is that -XrunOnFirstThread is intended for ’toolkit’s
that aren’t Swing based but handle the gui and NSRunLoop as indicated
themselves - like Eclipse with SWT.
For debug purpose you can try to remove this option and use the sun.java2d.opengl.OGLUtilities class
instead, it was created specifically to support the JOGL library long time ago. Note that it is not
public and can be problematic to access right now.
It would be good to know how you actually render the OGL content to Swing/AWT via the java code. We
have only one supported mechanism to do that -> via jawt from the native code using CALayer.
--
Best regards, Sergey.