From e1d3d01e2fbafd51b5d764d03a40607073a3e854 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 22 Feb 2022 13:15:25 -0800 Subject: [PATCH] macos: update CGL context when surface resizes --- gdk/macos/gdkmacosglcontext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index b062196ba8..5baff95a9b 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -532,6 +532,9 @@ gdk_macos_gl_context_surface_resized (GdkDrawContext *draw_context) g_assert (GDK_IS_MACOS_GL_CONTEXT (self)); g_clear_pointer (&self->damage, cairo_region_destroy); + + if (self->cgl_context != NULL) + CGLUpdateContext (self->cgl_context); } static gboolean