gdk: use EGL_KHR_swap_buffers_with_damage
authorChristian Hergert <chergert@redhat.com>
Thu, 3 Mar 2022 06:59:23 +0000 (22:59 -0800)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Mar 2022 02:04:30 +0000 (22:04 -0400)
commitf0e8ee3c29380b99d4bcd2492059d13298b5a36d
tree2c237e748e97eb10def2fe696b3eba0f5a6a9f73
parent33a1cf203e8bdffe3144551a039e95894f71494a
gdk: use EGL_KHR_swap_buffers_with_damage

It appears that NVIDIA does not implement EGL_EXT_swap_buffers_with_damage
on their EGL implementation, but does implement the KHR variant of it.
This checks for a suitable implementation and stores a pointer to the
compatible implementation within the GdkGLContextPrivate struct.
gdk/gdkdisplay.c
gdk/gdkdisplayprivate.h
gdk/gdkglcontext.c