aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/native')
-rw-r--r--src/jogl/native/macosx/MacOSXWindowSystemInterface.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
index 9a7356b7c..5973ca45b 100644
--- a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
+++ b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
@@ -470,6 +470,7 @@ void deletePixelFormat(void* pixelFormat) {
void* createContext(void* shareContext,
void* view,
void* pixelFormat,
+ Bool opaque,
int* viewNotReady)
{
getRendererInfo();
@@ -520,6 +521,10 @@ void* createContext(void* shareContext,
if (nsContext != nil) {
if (nsView != nil) {
+ if(!opaque) {
+ long zeroOpacity = 0;
+ [nsContext setValues:&zeroOpacity forParameter:NSOpenGLCPSurfaceOpacity];
+ }
[nsContext setView:nsView];
[nsView unlockFocus];
}