diff options
author | Sven Gothel <[email protected]> | 2013-03-20 17:14:25 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-03-20 17:14:25 +0100 |
commit | 23acd1f063cfd8519be57f867cbafe748094756d (patch) | |
tree | b29068556c2023cb28a43e36b91122461b92cfb8 /src/jogl | |
parent | ec50802db11f897a49a6f9e716186c700411ece5 (diff) |
MacOSXCGLContext: NPE in DEBUG mode while releaseNSOpenGLLayer on main-thread, drawable maybe null already
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java index db27ccc79..f99d89df7 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java @@ -718,12 +718,12 @@ public abstract class MacOSXCGLContext extends GLContextImpl } CGL.releaseNSOpenGLLayer(cmd.nsOpenGLLayer); if(DEBUG) { - System.err.println("NSOpenGLLayer.Detach: OK, layer "+toHexString(cmd.nsOpenGLLayer)+", drawableHandle "+toHexString(drawable.getHandle())+" - "+Thread.currentThread().getName()); + System.err.println("NSOpenGLLayer.Detach: OK, layer "+toHexString(cmd.nsOpenGLLayer)+" - "+Thread.currentThread().getName()); } cmd.nsOpenGLLayer = 0; cmd.valid = false; } else if(DEBUG) { - System.err.println("NSOpenGLLayer.Detach: Skipped "+toHexString(cmd.nsOpenGLLayer)+", drawableHandle "+toHexString(drawable.getHandle())+" - "+Thread.currentThread().getName()); + System.err.println("NSOpenGLLayer.Detach: Skipped "+toHexString(cmd.nsOpenGLLayer)+" - "+Thread.currentThread().getName()); } } } |