diff options
author | Christian Hergert <chergert@redhat.com> | 2021-02-08 09:53:46 -0800 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2021-02-08 11:30:05 -0800 |
commit | 65296228d7b8de0d1c6c561c4cd19195d36488fd (patch) | |
tree | 148c0160d0af2b71965b1a54126a81f5018e6607 | |
parent | 443d19986858fe307b921e7c6c47dbc0dbea272d (diff) | |
download | gtk+-65296228d7b8de0d1c6c561c4cd19195d36488fd.tar.gz |
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.
-rw-r--r-- | gdk/macos/gdkmacosglcontext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index 8dd6bc2e00..28b3ed7ac7 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -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 |