diff options
author | Sven Gothel <[email protected]> | 2011-10-13 13:47:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-13 13:47:30 +0200 |
commit | 3fd89ccc138eddb915372cff4843f69f764048a7 (patch) | |
tree | e56ee402ffbec00220e4bead29b39a73b467f48e /src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java | |
parent | 5d33b0a3ef993ff2d257c90abc3d84bc93269cd0 (diff) |
MacOSX: Always release ctx on main thread (offscreen was frozen as well); Cleanup Warnings and OSX ContextUpdater
-
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java index b35e38d02..383594d87 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java @@ -205,16 +205,9 @@ public abstract class MacOSXCGLContext extends GLContextImpl if (CGL.kCGLNoError != CGL.CGLDestroyContext(contextHandle)) { throw new GLException("Unable to delete OpenGL Context (CGL)"); } - if (DEBUG) { - System.err.println("!!! Destroyed OpenGL Context (CGL) " + toHexString(contextHandle)); - } } else { - final boolean isSharedContext = GLContextShareSet.isShared(this); - if (!CGL.deleteContext(contextHandle, isSharedContext)) { - throw new GLException("Unable to delete OpenGL Context (NS) "+toHexString(contextHandle)+", isShared "+isSharedContext); - } - if (DEBUG) { - System.err.println("!!! Destroyed OpenGL Context (NS.s0) " + toHexString(contextHandle)+", isShared "+isSharedContext); + if (!CGL.deleteContext(contextHandle, true)) { + throw new GLException("Unable to delete OpenGL Context (NS) "+toHexString(contextHandle)); } } } |