mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
macos: set opengl view as opaque in opaque windows
We don't need the OpenGL view to be transparent if the window itself is not transparent. This has the potential to speed up the compositing of the GL view onto the NSWindow.
This commit is contained in:
parent
2d103cf80c
commit
285781724f
@ -82,7 +82,9 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|||||||
|
|
||||||
-(BOOL)isOpaque
|
-(BOOL)isOpaque
|
||||||
{
|
{
|
||||||
return NO;
|
if ([self window])
|
||||||
|
return [[self window] isOpaque];
|
||||||
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
-(BOOL)isFlipped
|
-(BOOL)isFlipped
|
||||||
|
Loading…
Reference in New Issue
Block a user