aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native/macosx
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-12 10:55:54 +0200
committerSven Gothel <[email protected]>2011-10-12 10:55:54 +0200
commit4d0c6cfe9abd8036c00e09e280605d7c5acbbf93 (patch)
treefe20933b9470d4c386e9f2ff65d0057799eb5adf /src/jogl/native/macosx
parentafec120a6fbb277025372a052955f97c225f0a9d (diff)
OSX Minor Cleanups: ctx delete note (freeze when shared ctx), Better MainThread Thread name[s]
Diffstat (limited to 'src/jogl/native/macosx')
-rw-r--r--src/jogl/native/macosx/MacOSXWindowSystemInterface.m8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
index 5973ca45b..86d875502 100644
--- a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
+++ b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
@@ -590,7 +590,7 @@ Bool deleteContext(void* nsJContext) {
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[nsContext clearDrawable];
- [nsContext release];
+ [nsContext release]; // freezes for a few seconds if ctx is shared
[pool release];
return true;
}
@@ -656,15 +656,9 @@ void* createPBuffer(int renderTarget, int internalFormat, int width, int height)
}
Bool destroyPBuffer(void* buffer) {
- /* FIXME: not clear whether we need to perform the clearDrawable below */
NSOpenGLPixelBuffer *pBuffer = (NSOpenGLPixelBuffer*)buffer;
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
- /*
- if (nsContext != NULL) {
- [nsContext clearDrawable];
- }
- */
[pBuffer release];
[pool release];