glx: Implement support for EXT_swap_control
authorBenjamin Otte <otte@redhat.com>
Thu, 18 May 2023 00:02:03 +0000 (02:02 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 24 May 2023 19:44:43 +0000 (21:44 +0200)
commitc7b62d89e3e15e6c7a2bac30c85cb2cd9b2542a8
tree96444d9fe8546900dc41d84b539163d833391043
parent46e3454eb7730e49374ebdeacdf9078db335c1f9
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