gdkgl: Check for GLsync before using it
authorBenjamin Otte <otte@redhat.com>
Sat, 1 Jul 2023 20:46:47 +0000 (22:46 +0200)
committerRaspbian forward porter <root@raspbian.org>
Wed, 22 Nov 2023 04:54:09 +0000 (04:54 +0000)
commit62320188008b882b472d5df463d38c05816fc174
tree61243714aaadedb4928167d32a56a78928cec2dc
parent69003ea99d63792bbce1df5fb7bc49d97c4fbf6a
gdkgl: Check for GLsync before using it

Copy what we do in GTK4: Check for GL >= 3.2 or GLES >= 3.0 or the
GL_ARB_sync extension.
Then store that info for a (private) gdk_gl_context_has_sync()
function.
And then check that function before using GLsync objects as introduced
by commit 9811485990b.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5749
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6162
Origin: 3.24.39, commit:cf7decae1a1a2af825caca8da018ce09cd9ce31a

Gbp-Pq: Name gdkgl-Check-for-GLsync-before-using-it.patch
gdk/gdkgl.c
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h