Skip to content

Commit 2c8f1d1

Browse files
committed
mac: jogl: Fix DestroyNSWindow dispatch bug (fixes #514)
JOGL's DestroyNSWindow0 is called from SharedResourceRunner thread during OpenGL capability detection cleanup. macOS requires NSWindow operations on the main thread, causing a crash: "Must only be used from the main thread" Patch OSXUtil.DestroyNSWindow in jogl-all.jar to dispatch via RunOnMainThread when called from a background thread, matching how CreateNSWindow is already handled. The issue includes a script for applying this patch to the original 2.4.0 jar version. Related bug: https://jogamp.org/bugzilla/show_bug.cgi?id=1370
1 parent 6b24fda commit 2c8f1d1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

third_party/jogamp/README.jcef

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ See http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL for
1313
related documentation.
1414

1515
Local Modifications:
16-
None.
16+
Patch OSXUtil.DestroyNSWindow in jogl-all.jar to dispatch via
17+
RunOnMainThread when called from a background thread, matching how
18+
CreateNSWindow is already handled. The issue includes a script for
19+
applying this patch to the original 2.4.0 jar version.
20+
https://github.com/chromiumembedded/java-cef/issues/514#issuecomment-3825848565
49.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)