aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-17 21:56:59 +0100
committerSven Gothel <[email protected]>2011-12-17 21:56:59 +0100
commitae099e6623cf973193647495a27bcd4b25230c4a (patch)
treee240495279b69030570a16dea994e7c8c52d1add /src/jogl/native/macosx/MacOSXWindowSystemInterface.m
parentb5492631bbcfe23f9a6a292bfc5f53c7a7b8caec (diff)
MaxOSXWindowSystemInterface: deleteContext / releaseNSOpenGLLayer:
- release on main-thread doesn't wait anymore - use recursive lock
Diffstat (limited to 'src/jogl/native/macosx/MacOSXWindowSystemInterface.m')
-rw-r--r--src/jogl/native/macosx/MacOSXWindowSystemInterface.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
index 8c04f1774..b5979d53e 100644
--- a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
+++ b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
@@ -603,7 +603,7 @@ Bool deleteContext(NSOpenGLContext* ctx, Bool releaseOnMainThread) {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[ctx clearDrawable];
if(releaseOnMainThread && NO == [NSThread isMainThread]) {
- [ctx performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
+ [ctx performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO];
} else {
// would hangs for ~10s for 1 of a shared context set or offscreen context, set releaseOnMainThread=true !
[ctx release];