projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a58c4
)
macos: update CGL context when surface resizes
author
Christian Hergert
<christian@hergert.me>
Tue, 22 Feb 2022 21:15:25 +0000
(13:15 -0800)
committer
Christian Hergert
<christian@hergert.me>
Tue, 22 Feb 2022 21:15:25 +0000
(13:15 -0800)
gdk/macos/gdkmacosglcontext.c
patch
|
blob
|
history
diff --git
a/gdk/macos/gdkmacosglcontext.c
b/gdk/macos/gdkmacosglcontext.c
index b062196ba8e7471c045df607b47ab3f584259573..5baff95a9bb0808886a67f1c08312f1d01bd120c 100644
(file)
--- 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