glx: Implement support for EXT_swap_control
authorBenjamin Otte <otte@redhat.com>
Thu, 18 May 2023 00:02:03 +0000 (02:02 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:58:12 +0000 (07:58 -0400)
commit36b4903e0cc9da7f785598e8d2a5ca9b824eafb3
tree76680b0ad390e20c28c2018e5aff6ea3ba662ecc
parent2092d21bad455cea8f3a440dd6a23113f63f53a0
glx: Implement support for EXT_swap_control

XWayland (at least on gnome-shell) does not support SGI_swap_control,
which we were using to unset the swap interval.

It does support EXT_swap_control though, which is the more modern
version of the same thing, so this commit adds support for that.

And now GDK_DEBUG=no-vsync gives me >1000fps instead of just 60fps,
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkglcontext-glx.c