mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
macos: only flush when not attached
This makes it so we only flush the context for the NSView, not the context that is the center of our center of the GL context spokes.
This commit is contained in:
parent
443d199868
commit
65296228d7
@ -362,7 +362,8 @@ gdk_macos_gl_context_end_frame (GdkDrawContext *context,
|
||||
|
||||
GDK_DRAW_CONTEXT_CLASS (gdk_macos_gl_context_parent_class)->end_frame (context, painted);
|
||||
|
||||
[self->gl_context flushBuffer];
|
||||
if (!self->is_attached)
|
||||
[self->gl_context flushBuffer];
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user