From 32b643624ad6d7533bb45143b717c68d6ea878e7 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 16 Oct 2011 20:38:54 +0200 Subject: OSX: Fix CGL deleteContext()'s release call on MainThread (typo, shall have no ':' for void func call) --- src/jogl/native/macosx/MacOSXWindowSystemInterface.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/native') 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]; -- cgit v1.2.3