diff options
Diffstat (limited to 'src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java')
-rw-r--r-- | src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java b/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java index 13629945e..5c1a05e6b 100644 --- a/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java +++ b/src/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java @@ -158,6 +158,11 @@ public abstract class MacOSXCGLContext extends GLContextImpl throw new GLException("Error creating NSOpenGLContext with requested pixel format"); } + if (!pbuffer && !capabilities.isBackgroundOpaque()) { + // Set the context opacity + CGL.setContextOpacity(nsContext, 0); + } + // On this platform the pixel format is associated with the // context and not the drawable. However it's a reasonable // approximation to just store the chosen pixel format up in the |