diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java index 150a5e105..6d6b79b42 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java @@ -143,6 +143,7 @@ public abstract class MacOSXCGLContext extends GLContextImpl contextHandle = CGL.createContext(share, drawable.getHandle(), pixelFormat, + capabilities.isBackgroundOpaque(), viewNotReady, 0); if (contextHandle == 0) { if (viewNotReady[0] == 1) { @@ -161,6 +162,7 @@ public abstract class MacOSXCGLContext extends GLContextImpl } GLCapabilitiesImmutable caps = MacOSXCGLGraphicsConfiguration.NSPixelFormat2GLCapabilities(glProfile, pixelFormat); + caps = GLGraphicsConfigurationUtil.fixOpaqueGLCapabilities(caps, capabilities.isBackgroundOpaque()); config.setChosenCapabilities(caps); } finally { CGL.deletePixelFormat(pixelFormat); |