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:
Christian Hergert 2021-02-08 09:53:46 -08:00
parent 443d199868
commit 65296228d7

View File

@ -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