diff options
Diffstat (limited to 'src/jogl/native')
-rw-r--r-- | src/jogl/native/macosx/MacOSXWindowSystemInterface.m | 4 |
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]; |