Reply – Re: JOGL on Mojave, Mac OS 10.14
Your Name
Subject
Message
or Cancel
In Reply To
Re: JOGL on Mojave, Mac OS 10.14
— by Andy Skinner Andy Skinner
A suggestion I was given:
 Maybe the window initialization needs to go on the main event thread, via libdispatch, like this:

#include <dispatch/dispatch.h>

/* ... later on... */

dispatch_sync(dispatch_get_main_queue(), ^{ /* ...[[NSWindow alloc] init...] */ });

If the caller doesn't need to wait for the block to execute, dispatch_async could be used instead.