From: Christian Hergert Date: Tue, 22 Feb 2022 21:15:25 +0000 (-0800) Subject: macos: update CGL context when surface resizes X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~3^2~72^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e1d3d01e2fbafd51b5d764d03a40607073a3e854;p=gtk4.git macos: update CGL context when surface resizes --- 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