macos: update CGL context when surface resizes
authorChristian Hergert <christian@hergert.me>
Tue, 22 Feb 2022 21:15:25 +0000 (13:15 -0800)
committerChristian Hergert <christian@hergert.me>
Tue, 22 Feb 2022 21:15:25 +0000 (13:15 -0800)
gdk/macos/gdkmacosglcontext.c

index b062196ba8e7471c045df607b47ab3f584259573..5baff95a9bb0808886a67f1c08312f1d01bd120c 100644 (file)
@@ -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