gdk: Make sure only one GL backend is used
authorBenjamin Otte <otte@redhat.com>
Thu, 23 Sep 2021 23:47:03 +0000 (01:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 24 Sep 2021 11:54:17 +0000 (13:54 +0200)
commit21cd0f942e145297f87b212868e34672070d0231
tree7b2bf939c40d5089b686f1900dac83b9ac41a4d2
parent345b06bbbf822ff0866b6c4fd99c4c28d4ce1f9f
gdk: Make sure only one GL backend is used

Creative people managed to create an X11 display and a Wayland display
at once, thereby getting EGL and GLX involved in a fight to the death
over the ownership of the glFoo() symbolspace.

A way to force such a fight with available tools here is (on Wayland)
running something like:
GTK_INSPECTOR_DISPLAY=:1 GTK_DEBUG=interactive gtk4-demo

Related: xdg-desktop-portal-gnome#5
gdk/gdkdisplay.c
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/macos/gdkmacosdisplay.c
gdk/macos/gdkmacosglcontext.c
gdk/wayland/gdkglcontext-wayland.c
gdk/win32/gdkglcontext-win32-egl.c
gdk/win32/gdkglcontext-win32-wgl.c
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-glx.c