mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 676248 - Make the window GL context transparent on OSX. r=bgirard
This commit is contained in:
parent
c2e09db365
commit
09292dc7dc
@ -322,7 +322,7 @@ GLContextProviderCGL::CreateForWindow(nsIWidget *aWidget)
|
||||
|
||||
GLContextCGL *shareContext = GetGlobalContextCGL();
|
||||
|
||||
NSOpenGLContext *context = [[NSOpenGLContext alloc]
|
||||
NSOpenGLContext *context = [[NSOpenGLContext alloc]
|
||||
initWithFormat:sCGLLibrary.PixelFormat()
|
||||
shareContext:(shareContext ? shareContext->mContext : NULL)];
|
||||
if (!context) {
|
||||
@ -330,6 +330,9 @@ GLContextProviderCGL::CreateForWindow(nsIWidget *aWidget)
|
||||
}
|
||||
|
||||
// make the context transparent
|
||||
GLint opaque = 0;
|
||||
[context setValues:&opaque forParameter:NSOpenGLCPSurfaceOpacity];
|
||||
|
||||
SurfaceCaps caps = SurfaceCaps::ForRGBA();
|
||||
nsRefPtr<GLContextCGL> glContext = new GLContextCGL(caps,
|
||||
shareContext,
|
||||
|
Loading…
Reference in New Issue
Block a user