aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/macosx/cgl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-11 04:57:45 +0100
committerSven Gothel <[email protected]>2011-11-11 04:57:45 +0100
commit3a6f6fd237505e8ced20b64579cca42e61751c51 (patch)
treef4a495ff0e58e4fe05b02d4192c88393e42d2435 /src/jogl/classes/jogamp/opengl/macosx/cgl
parent0120a81c36ffc7455d196960048fe935f82fc9a6 (diff)
Minor edits: Remove dead code / fix dbg printf
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx/cgl')
-rw-r--r--src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawable.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawable.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawable.java
index a97f3b1b2..7ee0d4fbe 100644
--- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawable.java
+++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawable.java
@@ -123,58 +123,6 @@ public abstract class MacOSXCGLDrawable extends GLDrawableImpl {
return GLBackendType.NSOPENGL == openGLMode ? getHandle() : null;
}
- /**
- @Override
- protected void destroyHandle() {
- if(layeredSurfaceType == LayeredSurfaceType.Direct) {
- // direct surface host, eg. AWT GLCanvas
- final MacOSXJAWTWindow lsh = MacOSXCGLDrawableFactory.getLayeredSurfaceHost(surface);
- if (DEBUG) {
- System.err.println("destroyHandle: layerType " + layeredSurfaceType + ", backingLayer "+toHexString(lsh.getSurfaceHandle()) + " -> 0");
- }
- OSXUtil.DestroyNSView(lsh.getSurfaceHandle());
- // CGL.releaseNSOpenGLView(lsh.getSurfaceHandle());
- lsh.setSurfaceHandle(0);
- } else if (DEBUG) {
- System.err.println("destroyHandle: layerType " + layeredSurfaceType);
- }
- super.destroyHandle();
- }
-
- @Override
- protected void updateHandle() {
- final MacOSXJAWTWindow lsh = MacOSXCGLDrawableFactory.getLayeredSurfaceHost(surface);
- if (null != lsh) {
- if(lsh == surface) {
- // direct surface host, eg. AWT GLCanvas
- layeredSurfaceType = LayeredSurfaceType.Direct;
- final long oldNSView = lsh.getSurfaceHandle();
- if(0 != oldNSView) {
- OSXUtil.DestroyNSView(oldNSView);
- // CGL.releaseNSOpenGLView(oldNSView);
- }
- final long nsView = OSXUtil.CreateNSView(0, 0, getWidth(), getHeight());
- // final long nsView = CGL.createNSOpenGLView(0, 0, getWidth(), getHeight());
- lsh.setSurfaceHandle(nsView);
- if (DEBUG) {
- System.err.println("updateHandle: layerType " + layeredSurfaceType + ", backingLayer "+toHexString(oldNSView) + " -> "+toHexString(nsView));
- }
- } else {
- // parent surface host, eg. via native parenting w/ NewtCanvasAWT
- layeredSurfaceType = LayeredSurfaceType.Parented;
- if (DEBUG) {
- System.err.println("updateHandle: layerType " + layeredSurfaceType + ", backingLayer "+toHexString(getHandle()));
- }
- }
- } else {
- layeredSurfaceType = LayeredSurfaceType.None;
- if (DEBUG) {
- System.err.println("updateHandle: layerType " + layeredSurfaceType);
- }
- }
- super.updateHandle();
- } */
-
@Override
protected void updateHandle() {
final MacOSXJAWTWindow lsh = MacOSXCGLDrawableFactory.getLayeredSurfaceHost(surface);