[gtk/wip/chergert/macos-iosurface] macos: update CGL context when surface resizes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-iosurface] macos: update CGL context when surface resizes
- Date: Tue, 22 Feb 2022 21:15:37 +0000 (UTC)
commit e1d3d01e2fbafd51b5d764d03a40607073a3e854
Author: Christian Hergert <christian hergert me>
Date: Tue Feb 22 13:15:25 2022 -0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]