aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-16 20:38:54 +0200
committerSven Gothel <[email protected]>2011-10-16 20:38:54 +0200
commit32b643624ad6d7533bb45143b717c68d6ea878e7 (patch)
treefc4757d646a063a815a15e811d63d53075809c7f /src/jogl
parent3cffd63dd7bf73344aacdae35f4c7d3639393294 (diff)
OSX: Fix CGL deleteContext()'s release call on MainThread (typo, shall have no ':' for void func call)
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/native/macosx/MacOSXWindowSystemInterface.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
index 188d6d593..bff7d38e2 100644
--- a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
+++ b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
@@ -591,9 +591,9 @@ Bool deleteContext(void* nsJContext, Bool releaseOnMainThread) {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[nsContext clearDrawable];
if(releaseOnMainThread && NO == [NSThread isMainThread]) {
- [nsContext performSelectorOnMainThread:@selector(release:) withObject:nil waitUntilDone:YES];
+ [nsContext performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
} else {
- // would hangs for ~10s for 1 of the shared context, set releaseOnMainThread=true !
+ // would hangs for ~10s for 1 of a shared context set or offscreen context, set releaseOnMainThread=true !
[nsContext release];
}
[pool release];